Re: bash exception
Thomas Moritz <[email protected]>
| Newsgroups | gmane.linux.suse.programming |
|---|---|
| Organization | - |
| Message-ID | <[email protected]> |
Am Dienstag, 23. Oktober 2007 17:26:12 schrieb Manfred Hollstein: Hallo Manfred, > On Tue, 23 Oct 2007, 17:04:33 +0200, Thomas Moritz wrote: > > [...] > > ( und nein, es liegt hier nicht an while true ) > > > > #!/bin/bash > > > > set -e > > Hmm, das hatte ich mir schon gedacht... Folgendes sagt "help set" > dazu: > > -e Exit immediately if a command exits with a non-zero status. > > Mach' das mal 'raus ;-) Du bist ein Held! Danke vielmals. Nach den ersten Tests mit -xv schreibe ich schon aus Gewohnheit immer das -e rein, um Fehler zu finden :-( In diesem Fall habe ich mir damit selbst ein Kind gemacht. MfG Th. Moritz