Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sh -e changes broke pkgsrc said:
> NetBSD's "sh" now implements both cases correctly
> [...]

I'm not so sure this is correct. Every other sh behaves
as NetBSD's did before, as as bash does.
(I've checked OSF/1 and Solaris.)

-e When this option is on, if a simple command fails for any of
   the reasons listed in Consequences of Shell Errors or returns
   an exit status value >0, and is not part of the compound list
   following a while, until, or if keyword, and is not a part of
   an AND or OR list, and is not a pipeline preceded by
   the ! reserved word, then the shell shall immediately exit.

best regards

Forschungszentrum Juelich GmbH
52425 Juelich

Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr. Harald Bolt,
Dr. Sebastian M. Schmidt

Home | Main Index | Thread Index | Old Index