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

2017-08-07 Thread Chet Ramey
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

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

2017-08-07 Thread Greg Wooledge
On Mon, Aug 07, 2017 at 05:32:21PM +0300, Reto wrote: > It does not work anymore in bash 4.4: > > # /bin/sh --version > GNU bash, version 4.4.12(1)-release (x86_64-redhat-linux-gnu) > Copyright (C) 2016 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <

bash 4.4 changed behavior wrt to builtin 'command'

2017-08-07 Thread Reto
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. While in bash 4.3 the following works: # /bin/sh --version GNU bash, version 4.3.43(1)-release (x86_64-redhat-linux-gnu) Copyright