On Wednesday, October 13, 2010 15:37:02 Ulrich Mueller wrote:
> >>>>> On Wed, 13 Oct 2010, Mike Frysinger wrote:
> > # If no paths are specified, then the return value is "false".
> 
> For the "or" case that's fine. But for the "and" case, I would expect
> that the function returns true if called with no arguments.

i disagree as the comment says: it's sticking to the bash behavior.

f=
[[ -e ${f} ]] && [[ -e ${f} ]]
[[ -e ${f} ]] || [[ -e ${f} ]]

these both return false.  as does this function:

f=
path_exists -a ${f}
path_exists -o ${f}
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to