[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fehlerbehandlung im Script
[Thread Prev] | [Thread Next]
- Subject: Re: Fehlerbehandlung im Script
- From: Marc Haber <mh+uugrn@xxxxxxxxxxxx>
- Date: Sat, 25 Jun 2005 21:52:48 +0200
- To: uugrn@xxxxxxxxxxxxxxx
On Sat, Jun 25, 2005 at 09:26:47PM +0200, Werner Holtfreter wrote:
> Jedenfalls moechte ich eine einfache Fehlerbehandlung ergaenzen. Das
> Script soll beim ersten Auftreten eines Fehlers einfach beendet
> werden
set [--abefhkmnptuvxBCHP] [-o option] [arg ...]
-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 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 value is being inverted
via !. A trap on ERR, if set, is executed before the
shell exits.
Hilft das?
Gruesse
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835