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

PATCH: zfautocheck equals signs



This somewhat gratuitous change is to get a rev 1.2 on the file;
I suspect that the state of the branches is confusing tailor.

Index: Functions/Zftp/zfautocheck
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/Zftp/zfautocheck,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 zfautocheck
--- Functions/Zftp/zfautocheck	10 Sep 1999 13:58:11 -0000	1.1.1.3
+++ Functions/Zftp/zfautocheck	3 Jul 2007 07:01:56 -0000
@@ -24,16 +24,16 @@
 
 if [[ -z $ZFTP_HOST ]]; then
   zfopen || return 1
-  [[ $1 = *d* ]] || do_close=1
+  [[ $1 == *d* ]] || do_close=1
 elif zftp test 2>/dev/null; then
   return 0
 else
   zfopen || return 1
 fi
 
-if [[ $1 = *n* ]]; then
+if [[ $1 == *n* ]]; then
   return 0
-elif [[ -n $lastloc && $ZFTP_HOST = ${lastloc%%:*} ]]; then
+elif [[ -n $lastloc && $ZFTP_HOST == ${lastloc%%:*} ]]; then
   # don't print directory since we're just going back where we were.
   zfcd ${lastloc#*:} >& /dev/null
 fi



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