From: Tanaka Akira <akr@m17n.org>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: _mount didn't complete devices.
Date: 03 May 2000 20:22:24 +0900 [thread overview]
Message-ID: <hvok8hbri8f.fsf@serein.m17n.org> (raw)
Z(4):akr@serein% Src/zsh -f
serein% bindkey -e; autoload -U compinit; compinit -D
serein% zstyle ':completion*' group-name ''
serein% zstyle ':completion*:descriptions' format %d
serein% mount
device
/dev/\*
mount point
CVS/ Config/ Etc/ Misc/ StartupFiles/ Util/
Completion/ Doc/ Functions/ Src/ Test/
Hm. /dev/\* is not globbed.
Index: Completion/User/_mount
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_mount,v
retrieving revision 1.4
diff -u -r1.4 _mount
--- Completion/User/_mount 2000/05/02 08:23:31 1.4
+++ Completion/User/_mount 2000/05/03 11:18:56
@@ -554,7 +554,7 @@
_message "no device or directory with option \`-a'"
else
_alternative \
- 'devices:device:compadd /dev/\*' \
+ 'devices:device:{compadd "$expl[@]" /dev/*}' \
'directories:mount point:_files -/' && ret=0
fi
;;
--
Tanaka Akira
reply other threads:[~2000-05-03 11:21 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=hvok8hbri8f.fsf@serein.m17n.org \
--to=akr@m17n.org \
--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).