On Fri, Dec 12, 2014 at 12:32 PM, Bob Proulx <b...@proulx.com> wrote:
> Greg Wooledge wrote: > > David J. Haines wrote: > > > When started interactively, bash sets the extglob shopt; however, that > > > fact seems to have been overlooked in the manpage. > > > > This is a compile-time setting. Your vendor probably turned this on. > > > > imadev:~$ bash-4.3 > > imadev:~$ shopt | grep extglob > > extglob off > > imadev:~$ exit > > Also some vendors place a lot of customization in /etc/profile, > /etc/profile.d/*, /etc/bash_otherplaces sourced in the above. It > might be turned on by one of those. > > I see a lot of hits in the bash_completion add-on files. Should we be > looking at: > > $ grep -r "shopt -s extglob" /etc/bash* > /etc/bash_completion.d/nmh: shopt -s extglob > /etc/bash_completion.d/libreoffice.sh: test $g -eq 0 && shopt -s > extglob > /etc/bash_completion.d/mercurial:shopt -s extglob > /etc/bash_completion.d/subversion:# pattern matching enabled (use 'shopt > -s extglob progcomp' to enable > /etc/bash_completion.d/subversion:shopt -s extglob > > Bob > > Perhaps you should check for shopt -u extglob reversing those. -- Visit serverfault.com to get your system administration questions answered.