Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh autocompletion not quite right for "sccs delget"
On Sun, 13 Feb 2011 12:11:51 -0500
Sebastien Roy <sebastien.roy@xxxxxxxxxx> wrote:
> I'm running zsh 4.3.10, and the "sccs delget <file>" command doesn't do
> autocompletion on the file argument.
Presumably the fix is something like the following, though I never use
sccs and don't really know what the different file completions are, and
it's using _arguments slightly differently from the way most functions do.
Index: Completion/Unix/Command/_sccs
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_sccs,v
retrieving revision 1.6
diff -p -u -r1.6 _sccs
--- Completion/Unix/Command/_sccs 21 Jan 2004 13:53:29 -0000 1.6
+++ Completion/Unix/Command/_sccs 15 Feb 2011 18:48:32 -0000
@@ -109,7 +109,9 @@ case $service in
sact|print) _sccs_files;;
create|enter) _files;;
deledit|delget|delta)
- _arguments '-s[silent]' '-y+[specify delta commentary]:comment'
+ _arguments "$sfiles" \
+ '-s[silent]' \
+ '-y+[specify delta commentary]:comment' \
;;
diffs)
_diff_options diff "$sfiles" "$ropt" "$copt" \
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author