On Fri, 7 Mar 2003, Mike Reed wrote: > He just missed some double quotes. > > if [ -z "$(ls -A dirname)" ]; then echo empty; fi > > I prefer the $(shell command) syntax rather than the `shell command`. I > find it easier to read. > I believe (someone tell me if I'm wrong) that it is now part of the > POSIX shell standard. > Of course some shells still don't support it so you might have to write: > > if [ -z "`ls -A dirname`" ]; then echo empty; fi > > Mike
just being pedantic, but would symbolic links in the directory count as content? rday -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list