Nelson H. F. Beebe wrote: > < if [ ! "$lscmd" ]; then > --- > > if [ ! " $lscmd" ]; then
That expression can never be true due to the additional space. I suggest using the -z operator instead. if [ -z "$lscmd" ]; then Bob _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils