zsh-workers
 help / color / mirror / code / Atom feed
* No completion of nice commands
@ 2007-03-22  9:53 Jörg Sommer
  2007-03-22 10:30 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Jörg Sommer @ 2007-03-22  9:53 UTC (permalink / raw)
  To: zsh-workers

Hi,

the completion for commands they are passed as argument to nice does not
work if nice gets itself an argument.

% nice ls --<TAB>
<List of possible options>
% nice -n4 ls --<TAB>
<nothing>
% $SHELL --version
zsh 4.3.2-dev-1 (powerpc-unknown-linux-gnu)
% dpkg -l zsh-beta | cat
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Säube
| Status=Nicht/Installiert/Config/U=Entpackt/Fehlges
|/ Fehler?=(kein)/Halten/R=Neuinst notw/X=beide (Sta
||/ Name           Version                Beschreibu
+++-==============-======================-==========
ii  zsh-beta       4.3.2-dev-1+20070319-1 A shell wi

Bye, Jörg.
-- 
Roesen's Law (http://www.bruhaha.de/laws.html):
Sobald ein Troll, DAU oder Elch im Lauf eines Threads auf heftige Kritik
stößt, argumentiert er mit der Arroganz des Kritikers. Dies kann auch
vorsorglich erfolgen.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: No completion of nice commands
  2007-03-22  9:53 No completion of nice commands Jörg Sommer
@ 2007-03-22 10:30 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2007-03-22 10:30 UTC (permalink / raw)
  To: Zsh hackers list

Jörg Sommer <joerg@alea.gnuu.de> wrote:
> the completion for commands they are passed as argument to nice does not
> work if nice gets itself an argument.
> 
> % nice ls --<TAB>
> <List of possible options>
> % nice -n4 ls --<TAB>
> <nothing>

It works with "nice -n 4 ls --", but the case where the 4 is in the
same word as the -n isn't handled.

Index: Completion/Unix/Command/_nice
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_nice,v
retrieving revision 1.1
diff -u -r1.1 _nice
--- Completion/Unix/Command/_nice	9 Jul 2003 14:06:20 -0000	1.1
+++ Completion/Unix/Command/_nice	22 Mar 2007 10:29:00 -0000
@@ -3,7 +3,7 @@
 shift words
 (( CURRENT-- ))
 
-if [[ $CURRENT -gt 1 && $words[1] = [-+](-|)<-> ]]; then
+if [[ $CURRENT -gt 1 && $words[1] = ([-+](-|)|-n)<-> ]]; then
     shift words
     (( CURRENT -- ))
 elif [[ $CURRENT -gt 2 && $words[1] = -n ]]; then


-- 


To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php

To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-22 10:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-22  9:53 No completion of nice commands Jörg Sommer
2007-03-22 10:30 ` Peter Stephenson

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).