[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bash and read -u
From: |
Wilhelm Mueller |
Subject: |
Re: bash and read -u |
Date: |
15 May 2001 15:23:43 +0200 |
>>>>> On Mon, 14 May 2001 19:57:12 -0400, "Mordechai T. Abzug"
>>>>> <morty@sanctuary.arbutus.md.us> said:
Morty> The ksh read builtin has a really nifty -u N option to get input from
Morty> filedescriptor N instead of from stdin. It would be useful if bash
Morty> read got that option, too.
Why not use this:
while read <&3 host; do
echo host: $host
ssh $host uname -s -r # this command may mess with stdin
done 3<<EOM
highlander
red-sonja
conan
gabrielle
EOM
-- Wilhelm