Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15397

Re: [Patch] (tiny problem) bad short_doc for % command

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: [Patch] (tiny problem) bad short_doc for % command
Date 2019-09-21 17:03 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.745.1569099867.2190.bug-bash@gnu.org> (permalink)
References <875zllu17s.fsf@igel.home> <f05218ed-a8f4-46f3-948e-46997cef7c5b@www.fastmail.com> <11446.1569087460@jinx.noi.kre.to> <e8ef77c4-d97d-26a6-d00c-64371eab9132@case.edu>

Show all headers | View raw


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/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: [Patch] (tiny problem) bad short_doc for % command Chet Ramey <chet.ramey@case.edu> - 2019-09-21 17:03 -0400

csiph-web