Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: zfautocheck equals signs
- X-seq: zsh-workers 23645
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: zfautocheck equals signs
- Date: Tue, 3 Jul 2007 03:06:27 -0400
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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