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

problem with [[ -s /some/file ]] under 3.0.4



Hrm.... I just installed 3.0.4 and there seems to be a rather basic flaw:


/bin/rm -f /tmp/filezero
touch /tmp/filezero
ls -l = -rw-r--r--   1 luomat   wheel           0 Jul  1 18:16 /tmp/filezero


if [[ -s /tmp/filezero ]]                                                     
    then
	echo yes
else
	echo no
fi

result: yes

	###########################

Previously I was using 3.0.2 which worked fine:


/bin/rm -f /tmp/filezero
touch /tmp/filezero
	-rw-r--r--   1 luomat   wheel           0 Jul  1 18:16 /tmp/filezero


if [[ -s /tmp/filezero ]]                                                     
    then
	echo yes
else
	echo no
fi

result: no

Anyone else see this?




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