On 12/12/10 4:34 AM, Matthias Andree wrote:
>> [ -f file ] && echo is
> you cannot run scripts containing this
> under a "set -e" regime.

Yes you can.

    `-e'
          Exit immediately if a simple command (*note Simple
          Commands::) exits with a non-zero status, unless the command
          that fails is part of the command list immediately following
          a `while' or `until' keyword, part of the test in an `if'
          statement, part of a `&&' or `||' list, or if the command's
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
          return status is being inverted using `!'.  A trap on `ERR',
          if set, is executed before the shell exits.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to