From: Peter Stephenson <pws@ibmth.df.unipi.it>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: PATCH: 3.1.6-test-1: small zftp changes
Date: Thu, 15 Jul 1999 11:44:17 +0200 [thread overview]
Message-ID: <9907150944.AA40348@ibmth.df.unipi.it> (raw)
Since I'm not going to be doing anything major soon, here are two small
changes to the zftp functions to get them out of the way.
--- Functions/Zftp/zfgoto.bak Fri Jun 11 17:55:19 1999
+++ Functions/Zftp/zfgoto Thu Jul 15 11:41:18 1999
@@ -67,7 +67,10 @@
host=${line%%:*}
dir=${line#*:}
-if [[ $user = ftp || $user = anonymous ]]; then
+if [[ $ZFTP_USER = $user && $ZFTP_HOST = $host ]]; then
+ # We're already there, just change directory
+ zfcd ${dir:-~}
+elif [[ $user = ftp || $user = anonymous ]]; then
# Anonymous ftp, so we don't need password etc.
zfanon $host && [[ -n $dir ]] && zfcd $dir
elif [[ $zflastsession = ${host}:* && $user = $zflastuser ]]; then
--- Functions/Zftp/zfinit.bak Fri Jun 11 18:36:36 1999
+++ Functions/Zftp/zfinit Thu Jul 15 11:41:19 1999
@@ -1,6 +1,6 @@
emulate -L zsh
-[[ $1 = -n ]] || zmodload -ia zftp
+[[ $1 = -n ]] || zmodload -e zftp || zmodload -ia zftp
alias zfcd='noglob zfcd'
alias zfget='noglob zfget'
--
Peter Stephenson <pws@ibmth.df.unipi.it> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
reply other threads:[~1999-07-15 10:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9907150944.AA40348@ibmth.df.unipi.it \
--to=pws@ibmth.df.unipi.it \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).