On 9/3/06, Bruce Dubbs <[EMAIL PROTECTED]> wrote:

The -a here is an expression operator between two operands, not a
literal conditional expression like -z or ! -f  in this example.

Note:  We could have made it really confusing by the valid statement:

if [ -z "$INPUTRC" -a ! -a "$HOME/.inputrc" ] ; then
...

:)

Would that work?

I've come to prefer the syntax of using multiple expressions within
their own test blocks combined in a compound statement.

if [ -z "$INPUTRC" ] && [ ! -f "$HOME/.inputrc" ]; then
...
fi

--
Dan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to