Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#461143: completion: erroneous "no more arguments"



On Wed, Jan 16, 2008 at 09:22:48PM +0000, Roman Odaisky wrote:
> sed -i -e 's/foo/bar/' ./some/file ./<TAB>
> 
> At this point completion fails and a message "no more arguments" appears. Seemingly zsh doesn't know how to complete any arguments beyond the first one. Is this just an incorrect completion configuration for sed or a more global problem?
> 
> WBR, Roman.

No, just sed.

Index: Completion/Unix/Command/_sed
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_sed,v
retrieving revision 1.2
diff -u -r1.2 _sed
--- Completion/Unix/Command/_sed	19 Nov 2005 15:47:48 -0000	1.2
+++ Completion/Unix/Command/_sed	16 Jan 2008 21:45:54 -0000
@@ -7,7 +7,7 @@
   '(1)*'{-e,--expression=-}'[add sed commands to run]:sed script'
   '(1)*'{-f,--file=-}'[add contents of file to commands to run]:file:_files'
   '(-e)1: :_guard "^-*" sed script'
-  ':input file:_files'
+  '*:input file:_files'
 )
 
 if _pick_variant gnu=GNU unix --version; then



Messages sorted by: Reverse Date, Date, Thread, Author