Re: stty: stdin isn't a terminal

From: Christian Weisgerber <naddy(at)mips.inka.de>
Date: Sun, 1 Sep 2002 12:26:51 +0000 (UTC)

Bernd Walter <ticso(at)cicely.de> wrote:

> While ist ein Shell interner Befehl und läuft mit dem Shell Prozess.
> Dementsprechend kann dann auch stdin nicht umgelenkt werden.

Vielleicht verstehe ich dich falsch, aber

$ while read foo; do ...; done < file
$ cmd | while read foo; do ...; done

sind natürlich überhaupt kein Problem.
(Und ich verwende das auch häufig.)

-- 
Christian "naddy" Weisgerber                          naddy(at)mips.inka.de
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sun 01 Sep 2002 - 14:30:52 CEST

search this site