[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash and read -u
From: |
Mordechai T. Abzug |
Subject: |
bash and read -u |
Date: |
Mon, 14 May 2001 19:57:12 -0400 |
User-agent: |
Mutt/1.3.17i |
The ksh read builtin has a really nifty -u N option to get input from
filedescriptor N instead of from stdin. It would be useful if bash
read got that option, too.
Example:
while read -u3 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
- Morty
- bash and read -u,
Mordechai T. Abzug <=