bug-bash
[Top][All Lists]
Advanced

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

GLOBIGNORE variable does not function when imported from environment, un


From: Craig Strickland
Subject: GLOBIGNORE variable does not function when imported from environment, until it's modified
Date: Sun, 09 Apr 2017 22:38:53 -0400

Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I../. -I.././include -I.././lib  -D_FORTIFY_SOURCE=2 -g 
-O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall
uname output: Linux server-7 3.16.0-4-686-pae #1 SMP Debian 3.16.39-1+deb8u2 
(2017-03-07) i686 GNU/Linux
Machine Type: i586-pc-linux-gnu

Bash Version: 4.3
Patch Level: 30
Release Status: release

Description:
        The GLOBIGNORE variable, when not explicitly set, but only imported 
from the environment, does not function correctly.
        Once any change is made to the GLOBIGNORE variable, even setting it to 
its current value, then it works.
        This was reproduced with bash 4.3.30(1) on Debian 8.7 "jessie" as well 
as bash 4.3.39(1) on NetBSD 7.0.1.

Repeat-By:
        $ PS1='$ ' bash --norc
        $ bash --version
        GNU bash, version 4.3.39(1)-release (x86_64--netbsd)
        $ echo $BASH_VERSION
        4.3.39(1)-release
        $ uname -a
        NetBSD sdf 7.0.1_PATCH NetBSD 7.0.1_PATCH (GENERIC.201607220540Z) amd64
        $ ls -la
        total 16
        drwx------   2 tgi  arpa   512 Apr  9 22:12 .
        drwx-----x  10 tgi  arpa  1024 Apr  9 22:11 ..
        -rw-r--r--   1 tgi  arpa     0 Apr  9 22:12 test
        -rw-r--r--   1 tgi  arpa     0 Apr  9 22:12 test2
        -rw-r--r--   1 tgi  arpa     0 Apr  9 22:12 test3
        $ GLOBIGNORE=test
        $ export GLOBIGNORE
        $ echo *
        test2 test3
        $ PS1='\$\$ ' bash --norc
        $$ echo "GLOBIGNORE=[$GLOBIGNORE]"
        GLOBIGNORE=[test]
        $$ echo *
        test test2 test3
        $$ GLOBIGNORE=$GLOBIGNORE
        $$ echo "GLOBIGNORE=[$GLOBIGNORE]"
        GLOBIGNORE=[test]
        $$ echo *
        test2 test3
        $$ ^D
        $ ^D



reply via email to

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