Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Mar 2010 22:53:17 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/bin/sh eval.c src/tools/regression/bin/sh/errors redirection-error4.0
Message-ID:  <201003132307.o2DN7B2k026023@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jilles      2010-03-13 22:53:17 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               eval.c 
  Added files:
    tools/regression/bin/sh/errors redirection-error4.0 
  Log:
  SVN rev 205138 on 2010-03-13 22:53:17Z by jilles
  
  sh: Do not abort on a redirection error if there is no command word.
  
  Although simple commands without a command word (only assignments and/or
  redirections) are much like special builtins, POSIX and most shells seem to
  agree that redirection errors should not abort the shell in this case. Of
  course, the assignments persist and assignment errors are fatal.
  
  To get the old behaviour portably, use the ':' special builtin.
  To get the new behaviour portably, given that there are no assignments, use
  the 'true' regular builtin.
  
  Revision  Changes    Path
  1.79      +7 -1      src/bin/sh/eval.c
  1.1       +7 -0      src/tools/regression/bin/sh/errors/redirection-error4.0 (new)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003132307.o2DN7B2k026023>