> > Description:
> >
> > There is a problem with variable scoping when variable is created from
> > assignment statement preceding function call in posix-mode. See an
> > example below.
> >
> >
> > Repeat-By:
> >
> > $ cat
On 1/28/19 6:24 PM, Martijn Dekker wrote:
> Op 27-01-19 om 22:59 schreef Chet Ramey:
>> This is a consequence of a combination of two POSIX features. First, POSIX
>> requires assignment statements preceding special builtins to create global
>> variables (POSIX has no local variables) that persist i
Op 27-01-19 om 22:59 schreef Chet Ramey:
> This is a consequence of a combination of two POSIX features. First, POSIX
> requires assignment statements preceding special builtins to create global
> variables (POSIX has no local variables) that persist in the shell context
> after the special builtin
On 1/27/19 7:58 AM, Alexander Tsoy wrote:
> Bash Version: 5.0
> Patch Level: 2
> Release Status: release
>
>
> Description:
>
> There is a problem with variable scoping when variable is created from
> assignment statement preceding function call in posix-m
/L56xx/X56xx (IBRS update)
GenuineIntel GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.0
Patch Level: 2
Release Status: release
Description:
There is a problem with variable scoping when variable is created from
assignment statement preceding function call in posix-mode. See an
example
w8...@mail.petersen.net wrote:
> cd()
> {
>builtin cd "$0" && xtitle $HOST: $PWD
> }
>
> This no longer works correctly since I upgraded bash to the version
> listed above. Instead, when I use cd without an argument the following
> error message:
>
> -bash: $@: unbound variable
>
> Repeat-
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd5.4
Compiler: cc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='freebsd5.4' -DCONF_MACHTYPE='i386-portbld-freebsd5.4'
-DCONF_VENDOR='portbld' -DLOCALEDIR='/usr/local/share/loc