Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [[ and [



On Mar 4,  6:36am, sergio wrote:
}
} if [[ ]]; then ... fi
} and
} if [ ]; than ... fi
} 
} OK, the first is an evaluating of the conditional expression, and what
} is the second?

An alias for the "test" builtin -- so everything that follows "[" is
parsed/expanded like an ordinary command argument.  It's in the zsh
manual under the "test" command description.



Messages sorted by: Reverse Date, Date, Thread, Author