Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug in [[ "" == "" ]] expressions?
- X-seq: zsh-workers 20512
- From: Felix Rosencrantz <f.rosencrantz@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Bug in [[ "" == "" ]] expressions?
- Date: Fri, 22 Oct 2004 07:58:22 -0700
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=bNjHnxn6B8g6srFGB3PhWC9cp4qoK56v2Vy/gdbfZcSkH0s6oeRd2nSD3X5zcf9nhxlh/filMEaNPwl3v7YWXRukXP51rCV+ar83B70RhiLHhtANupnP8GmsjEFbrE+mjRtPNQ0w4XNsUwpl0g9MKPfOtPSj8GHGv62gouO8EmE=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Reply-to: Felix Rosencrantz <f.rosencrantz@xxxxxxxxx>
It seems like zsh on 10-8 works like I'm use to, but a change since
then has changed the behavior. Not sure if Peter intended this.
Comparing an empty or unset string against an empty pattern returns
false. Here's the code:
zsh -f
% a=""
% b="abc"
% [[ "$a" == "" ]] ; echo $status
1
% [[ "$b" == "abc" ]] ; echo $status
0
% [[ "$c" == "" ]] ; echo $status
1
-FR
Messages sorted by:
Reverse Date,
Date,
Thread,
Author