From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10408 invoked by alias); 23 Aug 2014 04:08:31 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33043 Received: (qmail 16209 invoked from network); 23 Aug 2014 04:08:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140822210846.ZM22535@torch.brasslantern.com> Date: Fri, 22 Aug 2014 21:08:46 -0700 In-reply-to: <53F67562.2030102@gmx.net> Comments: In reply to qcd "Bug path completion chsh -s" (Aug 22, 12:40am) References: <53F67562.2030102@gmx.net> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: qcd@gmx.net, zsh-workers@zsh.org Subject: Re: Bug path completion chsh -s MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Aug 22, 12:40am, qcd wrote: } } > chsh -s } } in normal shellproposes a path list but in zsh that does not work. What is "normal shell"? Bash? What version? Are you on a single-user system you set up yourself, or are you at a school or business where an administrator has pre-configured the "normal shell"? Also, chsh has different syntax on different OS's: On MacOS it's an alias for chpass; on Ubuntu it only has --help and --shell options (and their -h -s counterparts); on RHEL it has several options and uses -u instead of -h for --help, and adds -l for --list, both of which conflict with chpass on MacOs; and so on. So "please fix" is a rather open-ended request. Oh well, never mind. Here's something for RHEL; perhaps you can figure out how to fix it for your local environment, or just remove everything except -s, given that's the one thing they all seem to have in common. ---- 8< ---- name this _chsh and put in an fpath directory ---- 8< ---- #compdef chsh local -a opts opts=(-s -l -u -v --shell --list-shells --help --version) _arguments : \ "($opts)-s[Specify your login shell]:shell:($(