[950] in RedHat Linux List
Bash Bug?
daemon@ATHENA.MIT.EDU (Bryan C. Andregg)
Fri Oct 25 14:39:07 1996
To: redhat-list@redhat.com
From: bandregg@hueco.idir.net (Bryan C. Andregg)
Date: Fri, 25 Oct 1996 12:39:45 -0500
Reply-To: bandregg@idir.net
Resent-From: redhat-list@redhat.com
To my knwoledge the following should work:
bash# ls | while read i
> do
> rpm -Uvh $i
> done
However, this gives me:
error: cannot open file bar.rpm
error: cannot open file foo.rpm
.... (for each file listed).
The same applies to a commonly server script
bash# ls *.htm | while read i
> do
> mv $i ${i%%.htm}.html
done
And the error output is the same
error: cannot open file index.htm
error: cannot open file this.htm
... (for each file listed).
Is this a bug or is my syntax wrong?
--
-------------------------------------
Bryan C. Andregg [] Network Administrator
Internet Direct Communications [] System Administrator
Lawrence, Kansas [] Internet Janitor
-------------------------------------
--
PLEASE read the Red Hat FAQ, Tips, HOWTO and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-HOWTO
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null