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

Reply via email to