From: Peter Stephenson <pws@csr.com>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: No completion of nice commands
Date: Thu, 22 Mar 2007 10:30:42 +0000 [thread overview]
Message-ID: <20070322103042.7db09f0d.pws@csr.com> (raw)
In-Reply-To: <slrnf04khf.ist.joerg@alea.gnuu.de>
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
prev parent reply other threads:[~2007-03-22 10:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-22 9:53 Jörg Sommer
2007-03-22 10:30 ` Peter Stephenson [this message]
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=20070322103042.7db09f0d.pws@csr.com \
--to=pws@csr.com \
--cc=zsh-workers@sunsite.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).