On Fri, 8 Jan 1999, Bernd Brodesser wrote:
Am Fre, 08 Jan 1999 schrieb system:
2 sqlplus -s $EMAILLOGIN v_status.sql | while read LINE
Ob Zeile 2 richtig ist weiß ich nicht. read als while-Bedinung ist merkwürdig, da es niemals fehlschlägt. Wenn das so sein soll, so ist doch while true und read nach dem do besser.
Das kann so nicht sein, das Konstrukt ist durchaus ueblich. Der Test mit "read HLP; echo $?" ergibt bei Eingabe von EOF (^D) auch 1, also false. Die Struktur ist im Prinzip OK, aber ein paar Konstrukte sind suspekt und die Redundanzen koennen raus. Was bei Scripten ganz gut funktioniert, ist Abgucken. Ein laufendes System ist voll davon. Gerhard Sittig -- If you don't understand or are scared by any of the above ask your parents or an adult to help you. -- Um aus der Liste ausgetragen zu werden, eine Mail an majordomo@suse.com schicken, mit dem Text: unsubscribe suse-linux