From: Jamie C. <jca...@we...> - 2002-01-25 02:04:58
|
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 |