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.
yes, $(command) is part of the POSIX standard. it's more aesthetically appealing as well, and certainly makes nesting of command substitution easier. rday -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list