Am Fri, 16 Apr 2004 19:47:47 +0200 schrieb Erik Schanze
<schanzi_(a)gmx.de>:
Hi Erik,
> Falk Döring:
> > [[ -f ~/.alias ]] && [[ -z $LOAD_SYSTEM_ALIASES ]] && return 0
> > [[ -n $IGNORE_SYSTEM_ALIASES ]] && return 0
> >
> Wieso doppelte "["?
Nach 'man bash':
"[[ expression ]]
Return a status of 0 or 1 depending on the evaluation of the
conditional expression expression. Expressions are composed of
the primaries described below under CONDITIONAL EXPRESSIONS.
Word splitting and pathname expansion are not performed on the
words between the [[ and ]]; tilde expansion, parameter and
variable expansion, arithmetic expansion, command substitution,
process substitution, and quote removal are performed.
[...]"
[[ expression ]] tut dasselbe wie 'test expression'.
HTH,
Jonas
--
Jonas Witt <wittj at gmx dot net>
GnuPG: B5565CE5 | 41EC A65D C8FF A467 D897 8BD6 B6F9 3D02 B556 5CE5