From: PERA C. <cp...@cy...> - 2002-01-25 07:52:40
|
On Fri, 2002-01-25 at 03:04, Jamie Cameron wrote: > PERA Christophe <cp...@cy...> wrote .. > > Hi, > > I notice a problem wil "software/rpm-lib.pl" > > on my webmin (version 0.92) on a linux redhat 7.2 and GNU bash, version > > 2.05.8(1)-release (i386-redhat-linux-gnu) > > > > in the is_package function, there is an incorrect indirection : > > > > $out = `rpm -q -p $_[0] 2>&1`; > > in practice, this is a redirection of the standard error output > > on the standard output in my shell. > > > > and so, test on "out" variable is failed. > > someone else meet that ??? > > > > Is there a next correction about that ?? > > like "&>" or other code ? > > Or Maybe it is already modify? > > That isn't a bug - the 2>&1 option redirects STDERR to STDOUT, so that > the perl ` operator can capture all the output from the rpm command, which > is what it wants to do. > > - Jamie yes, I agree. I do an awful mistake :( thanks. Christophe PERA |