* Re: PATCH: zfinit
@ 2000-01-21 9:52 Sven Wischnowsky
0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 2000-01-21 9:52 UTC (permalink / raw)
To: zsh-workers
Should have played some more first...
When changing _description I didn't look at Functions/Zftp.
Bye
Sven
diff -ru ../z.old/Functions/Zftp/zfcd_match Functions/Zftp/zfcd_match
--- ../z.old/Functions/Zftp/zfcd_match Fri Jan 21 10:39:51 2000
+++ Functions/Zftp/zfcd_match Fri Jan 21 10:50:23 2000
@@ -30,8 +30,8 @@
rm -f $tmpf
[[ -n $dir && $dir != */ ]] && dir="$dir/"
if [[ -n $WIDGET ]]; then
- _description expl 'remote directory'
- compadd -S/ -q -P "$dir" - $reply
+ _description directories expl 'remote directory'
+ compadd "$expl[@]" -S/ -q -P "$dir" - $reply
elif [[ -n $dir ]]; then
reply=(${dir}$reply)
fi
diff -ru ../z.old/Functions/Zftp/zfget_match Functions/Zftp/zfget_match
--- ../z.old/Functions/Zftp/zfget_match Fri Jan 21 10:39:51 2000
+++ Functions/Zftp/zfget_match Fri Jan 21 10:48:13 2000
@@ -17,7 +17,7 @@
local reply
reply=(${${${(f)"$(<$tmpf)"}##$dir}%\*})
rm -f $tmpf
- _description expl 'remote file'
+ _description files expl 'remote file'
compadd "$expl[@]" -P $dir - $reply
else
# On the first argument to ls, we usually get away with a glob.
@@ -29,7 +29,7 @@
local fcache_name
zffcache
if [[ -n $WIDGET ]]; then
- _description expl 'remote file'
+ _description files expl 'remote file'
compadd "$expl[@]" -F fignore - ${(P)fcache_name}
else
reply=(${(P)fcache_name});
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: zfinit
@ 2000-01-21 10:36 Sven Wischnowsky
0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 2000-01-21 10:36 UTC (permalink / raw)
To: zsh-workers
Typo.
Bye
Sven
diff -ru ../z.old/Functions/Zftp/zfinit Functions/Zftp/zfinit
--- ../z.old/Functions/Zftp/zfinit Fri Jan 21 10:53:39 2000
+++ Functions/Zftp/zfinit Fri Jan 21 11:35:21 2000
@@ -31,7 +31,7 @@
# zftp completions: only use these if new-style completion is not
# active.
#
-if [[ ${#_patcomps} -eq 0 || -z ${_patcomps[(i)zf*]} ]]; then
+if [[ ${#_patcomps} -eq 0 || -z ${_patcomps[(r)zf*]} ]]; then
# only way of getting that noglob out of the way: this is unnecessary with
# widget-based completion
setopt completealiases
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* PATCH: zfinit
@ 2000-01-21 9:43 Sven Wischnowsky
0 siblings, 0 replies; 3+ messages in thread
From: Sven Wischnowsky @ 2000-01-21 9:43 UTC (permalink / raw)
To: zsh-workers
Autoloading zfinit gave me:
zfinit:zmodload:3: zsh/zftp: `/' is illegal in a builtin
Bye
Sven
diff -ru ../z.old/Functions/Zftp/zfinit Functions/Zftp/zfinit
--- ../z.old/Functions/Zftp/zfinit Fri Jan 21 10:39:51 2000
+++ Functions/Zftp/zfinit Fri Jan 21 10:40:18 2000
@@ -1,6 +1,6 @@
emulate -L zsh
-[[ $1 = -n ]] || zmodload -e zsh/zftp || zmodload -ia zsh/zftp || return 1
+[[ $1 = -n ]] || zmodload -e zsh/zftp || zmodload -ia zsh/zftp zftp || return 1
if zmodload -i zutil; then
local arr
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-01-21 10:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-21 9:52 PATCH: zfinit Sven Wischnowsky
-- strict thread matches above, loose matches on Subject: below --
2000-01-21 10:36 Sven Wischnowsky
2000-01-21 9:43 Sven Wischnowsky
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).