Hello justin, On 08/26/2013 06:31 PM, Justin Azoff wrote: > On Mon, Aug 26, 2013 at 06:20:55PM +0200, [email protected] wrote: >> pkg=pkg_name; rpm --quiet -q $pkg ; [ $? -eq 0 ] && echo $pkg is present || >> echo $pkg is not present > > [ $? -eq 0 ] is a shell antipattern, even simpler: > > pkg=pkg_name; rpm --quiet -q $pkg && echo $pkg is present || echo $pkg is not > present
just wanted to underline the usage of the exit status ;) but of course you're completely right ! best regards vito > > _______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
