[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] switches and smatch
From: |
Bakul Shah |
Subject: |
Re: [Nmh-workers] switches and smatch |
Date: |
Mon, 29 Jan 2018 08:31:02 -0800 |
May be the current -help option of most commands with some post processing is
good enough?
Under zsh on FreeBSD I use, for example,
compctl -K listifnets ifconfig
listifnets() { set -A reply $(ifconfig -l) }
Now whenever I try autocompleting ifconfig’s argument, zsh runs the
listifnets command which sets variable reply to existing net interface
names and this is then used for auto completion. This is useful when
the list of words can change dynamically or to avoid cluttering up the
variable name space. When the word list doesn’t change you can use
compctl -k (lowercase k) and provide a fixed word list to it.
> On Jan 29, 2018, at 3:43 AM, Ralph Corderoy <address@hidden> wrote:
>
> An option to dump an nmh program's options so a script can build upon
> them could be useful.
- Re: [Nmh-workers] rcvdist with non-default port, (continued)
- Re: [Nmh-workers] rcvdist with non-default port, Ralph Corderoy, 2018/01/27
- Re: [Nmh-workers] switches and smatch, David Levine, 2018/01/27
- Re: [Nmh-workers] switches and smatch, Ralph Corderoy, 2018/01/27
- Re: [Nmh-workers] switches and smatch, Ken Hornstein, 2018/01/28
- Re: [Nmh-workers] switches and smatch, Paul Vixie, 2018/01/28
- Re: [Nmh-workers] switches and smatch, Ken Hornstein, 2018/01/28
- Re: [Nmh-workers] switches and smatch, Ralph Corderoy, 2018/01/29
- Re: [Nmh-workers] switches and smatch,
Bakul Shah <=
- Re: [Nmh-workers] switches and smatch, Ken Hornstein, 2018/01/29
- Re: [Nmh-workers] switches and smatch, Ralph Corderoy, 2018/01/30
- Re: [Nmh-workers] switches and smatch, Bakul Shah, 2018/01/30
- Re: [Nmh-workers] rcvdist with non-default port, David Levine, 2018/01/14
- Re: [Nmh-workers] rcvdist with non-default port, Ralph Corderoy, 2018/01/18
- Re: [Nmh-workers] rcvdist with non-default port, Steven Winikoff, 2018/01/18
- Re: [Nmh-workers] rcvdist with non-default port, David Levine, 2018/01/18
- Re: [Nmh-workers] rcvdist with non-default port, Steven Winikoff, 2018/01/18
- Re: [Nmh-workers] rcvdist with non-default port, Ken Hornstein, 2018/01/18
- Re: [Nmh-workers] proposed patch for shell metacharacter failure in nmh-1.7, David Levine, 2018/01/14