zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-workers@sunsite.dk
Subject: Re: PATCH: new shells completion type
Date: Wed, 22 Jun 2005 15:59:20 +0200	[thread overview]
Message-ID: <9002.1119448760@trentino.groupinfra.com> (raw)
In-Reply-To: <20050622131158.GB4591@localhost.localdomain>

Doug Kearns wrote:
> Here is a new completion type for shells. It seems to me that if we're
> going to complete shells from /etc/shells then it should be restricted
> _only_ to shells listed there. This will change the behaviour of useradd
> completion which always included /bin/false.

With useradd/usermod, it's very useful to have /bin/false as a match. If
the user account won't need to login then that's a common way to ensure
it can't.

> -  '-s[shell to execute rather than $SHELL]:shell name: _command_names -e' \
> +  '-s[shell to execute rather than $SHELL]:shell:_shells' \

I don't use screen but does that option only get used with actual
shells?

> +  shells=( ${(M)commands:#*/((|[abckz]|tc|ba)sh|false)} )

That branch is still adding /bin/false. If screen's -s option is
commonly used, you may want to expand this a bit.

Oliver


This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.


  reply	other threads:[~2005-06-22 13:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-22 13:11 Doug Kearns
2005-06-22 13:59 ` Oliver Kiddle [this message]
2005-06-22 15:04   ` Doug Kearns
2005-06-22 14:07 ` Stephane Chazelas
2005-06-22 14:18   ` Peter Stephenson
2005-06-22 14:42     ` Oliver Kiddle
2005-06-23 10:12   ` Doug Kearns

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=9002.1119448760@trentino.groupinfra.com \
    --to=okiddle@yahoo.co.uk \
    --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).