[966] in RedHat Linux List
Re: Bash Bug?
daemon@ATHENA.MIT.EDU (Steve \"Stevers!\" Coile)
Fri Oct 25 15:54:57 1996
Date: Fri, 25 Oct 1996 14:42:13 -0400 (EDT)
From: "Steve \"Stevers!\" Coile" <scoile@patriot.net>
To: "Bryan C. Andregg" <bandregg@hueco.idir.net>
cc: redhat-list@redhat.com
In-Reply-To: <slrn571ur1.n1.bandregg@hueco.idir.net>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On Fri, 25 Oct 1996, Bryan C. Andregg wrote:
> 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).
Are you actually doing the above, or are you doing:
bash# ls /some/dir | while read i
. . .
If the latter, change your rpm invokation to:
rpm -Uvh /some/dir/$i
--
Steve Coile P a t r i o t N e t Systems Engineering
scoile@patriot.net Patriot Computer Group (703) 277-7737
--
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