[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Documentation Update
From: |
David J. Haines |
Subject: |
Re: Documentation Update |
Date: |
Fri, 12 Dec 2014 16:06:12 -0500 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Fri, Dec 12, 2014 at 01:59:50PM -0700, Bob Proulx wrote:
> Dennis Williamson wrote:
> > Bob Proulx wrote:
> > > 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
> >
> > Perhaps you should check for shopt -u extglob reversing those.
>
> Good point.
>
> $ grep -r "shopt -. extglob" /etc/bash*
> /etc/bash_completion.d/nmh: orig_opts=$(shopt -p extglob)
> /etc/bash_completion.d/nmh: shopt -s extglob
> /etc/bash_completion.d/libreoffice.sh: shopt -q extglob && g=1
> /etc/bash_completion.d/libreoffice.sh: test $g -eq 0 && shopt -s extglob
> /etc/bash_completion.d/libreoffice.sh: test $g -eq 0 &&
> shopt -u extglob
> /etc/bash_completion.d/libreoffice.sh: test $g -eq 0 && shopt -u extglob
> /etc/bash_completion.d/mercurial:shopt -s extglob
> /etc/bash_completion.d/subversion:shopt -s extglob
>
> Bob
A very good point, indeed. I run Arch, so I was surprised to hear that
any sort of customization by the packager would have taken place. I
built a quick systemd namespace container with a fresh base install, and
sure enough, there extglob was not set. Upon installation of
bash-completion, however, it was.
Thanks for the help!
--
David J. Haines
djhaines@gmx.com
0xAFB3D16D - F929 270F B7C3 78AE A741 434F A7C6 F264 AFB3 D16C
Re: Documentation Update, Chet Ramey, 2014/12/12