[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SLUG] bash



given the expression:

1. if [ -n $dirname ] && [ \( -d $dirname \) -a \( -x $dirname \) ];
then

in bash, i don't understand why it is any different and less tedious from:

2. if [ -n $dirname ] && [ -d $dirname ] && [ -x $dirname ]; then

could somebody explain the reason or need to have embedded boolean
constructs and escaped parentheses in the first expression ?

--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to slug-request@nospam.slug.org.au with
unsubscribe in the text