bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Robert Elz
Subject: Re: [Patch] (tiny problem) bad short_doc for % command
Date: Sun, 22 Sep 2019 00:37:40 +0700

    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.

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.

On the other hand:

        jinx$ help -s %
        %: job_spec [&]

whetre the '%' command name is missing.  This is actually something of
a weird case, as a command which consists entirely of a job_spec is
treated the same as the '% job_spec' command (ie: one can use either "%1"
or "% %1") so the help probably needs to be enhanced even more.

kre





reply via email to

[Prev in Thread] Current Thread [Next in Thread]