[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Patch] (tiny problem) bad short_doc for % command
From: |
Chet Ramey |
Subject: |
Re: [Patch] (tiny problem) bad short_doc for % command |
Date: |
Sat, 21 Sep 2019 17:03:47 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 9/21/19 1:37 PM, Robert Elz wrote:
> Date: Sat, 21 Sep 2019 17:18:47 +0200
> From: Andreas Schwab <schwab@linux-m68k.org>
> Message-ID: <875zllu17s.fsf@igel.home>
>
> | A job spec already starts with %.
>
> That's not what was meant.
It's the right answer, though.
>
> In, for example:
>
> jinx$ help -s wait
> wait: wait [-fn] [id ...]
>
> the command name appears both before and after the ':', as if to
> say "The usage for the wait command is "wait" optional 'f' and 'n' flags,
> and some number of optional "id" args.
The job spec, introduced by the `%', *is* the command. It's explained in
the man page. Even a `%' by itself, without any job name or number, is a
job spec. So `%' is not a command name per se -- the command that gets
invoked is either `fg' or `bg'.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/