Re: Bash: Fehler auch über Pipes hinweg abfangen
Sebastian Kayser <mls@skayser.de> wrote:
> Gibt es eine Möglichkeit Fehler von aufgerufenen Kommandos trotz der
> Verwendung von Pipes mittels trap oder etwas Ähnlichem abzufangen?
,---- set -e
| Exit immediately if a simple command (see SHELL GRAMMAR above) exits
| with a non-zero status. The shell does not exit if the command that
| fails is part of an until or while loop, part of an if statement, part
| of a && or || list, or if the command's return value is being inverted
| via !. A trap on ERR, if set, is executed before the shell exits.
`----
HTH, Frank
--
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer
Reply to: