zsh-workers
 help / color / mirror / code / Atom feed
* Bug in [[ "" == "" ]] expressions?
@ 2004-10-22 14:58 Felix Rosencrantz
  2004-10-22 15:32 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Felix Rosencrantz @ 2004-10-22 14:58 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-23 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-22 14:58 Bug in [[ "" == "" ]] expressions? Felix Rosencrantz
2004-10-22 15:32 ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).