bug-bash
[Top][All Lists]
Advanced

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

Re: [BUG] ERR trap triggered twice when using 'command'


From: Chet Ramey
Subject: Re: [BUG] ERR trap triggered twice when using 'command'
Date: Mon, 9 Apr 2018 08:51:25 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

On 4/7/18 12:52 PM, Martijn Dekker wrote:
> Op 02-04-18 om 20:41 schreef Chet Ramey:
>> Thanks for the report. This clearly falls under this clause
>>
>> "In every other respect, if command_name is not the name of a function, the
>> effect of command (with no options) shall be the same as omitting command."
>>
>> in the Posix description of `command'. It should be a one-line fix.
> 
> Given that text, commands prefixed with 'command' maybe shouldn't appear
> twice in xtrace output either. (They don't in any other shell.)

You're probably right, though I'm less sure about this. It seems like it's
clearer what's going on when the xtrace output includes `command'.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

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