On Wed, Jan 23, 2002 at 01:51:50PM -0600, JW wrote: > > Obviously I do not understand how to properly get a yes/no value out > of the string returned from a nested command. If someone could > explain even that much I'd appreciate it.
I think your syntax is squirrely. Probably don't want to be using backtics and $() at the same time. Also, I would "quote" anything to be tested with -z or -n. But I would suggest: new_mount=false if ! grep $mount /etc/mtab >/dev/null; then mount $mount new_mount=true else echo $mount is mounted. fi -- Hal Burgiss _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list