bug-bash
[Top][All Lists]
Advanced

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

Re: bash 4.4 changed behavior wrt to builtin 'command'


From: Chet Ramey
Subject: Re: bash 4.4 changed behavior wrt to builtin 'command'
Date: Mon, 7 Aug 2017 14:38:11 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 8/7/17 10:32 AM, Reto wrote:
> Hi,
> 
> Not sure if it's a bug or intended behavior, but in bash 4.4 the behavior
> changed with respect to builtin command 'command', called with /bin/sh.

When in Posix mode, bash doesn't allow functions to be defined with the
same name as a special builtin. It seems like RedHat added `command' to
the list of special builtins in their custom build of bash-4.4. Open a
ticket if they're your vendor.

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



reply via email to

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