help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Performing quote removal on data


From: Maarten Billemont
Subject: Re: [Help-bash] Performing quote removal on data
Date: Wed, 28 May 2014 17:01:37 -0400

On May 28, 2014, at 4:56 PM, Greg Wooledge <address@hidden> wrote:

> On Wed, May 28, 2014 at 04:49:49PM -0400, Maarten Billemont wrote:
>> On May 28, 2014, at 4:44 PM, Greg Wooledge <address@hidden> wrote:
>> 
>>> imadev:~/tmp$ compgen -o bashdefault "di"
>>> imadev:~/tmp$ compgen -o bashdefault "di*"
>>> imadev:~/tmp$ compgen -o default "di"
>>> dir 1
>>> dir 2
> 
>> Interesting.  You're probably running an older bash version then, because 
>> for me:
>> 
>> $ compgen -o bashdefault "di"
>> $ compgen -o bashdefault "di*"
>> dir 1
>> dir 2
>> $ compgen -o default "di"
>> dir 1
>> dir 2
> 
> I ran those commands under bash 4.3.18.  Maybe one of us has tweaked
> some shell option that changes what "bashdefault" does.  (In which case,
> "bashdefault" isn't a very good name.)
> 
> This is all a total mystery to me!
> 
> For the record, the shell where I ran those has dotglob off, extglob off,
> etc.  Every shopt line with "glob" in it is off.

meh..

$ bash --norc
bash-4.3$ compgen -o bashdefault "di*"
dir 1
dir 2

bash-4.3$ echo $BASH_VERSION
4.3.11(1)-release

bash-4.3$ shopt
autocd          off
cdable_vars     off
cdspell         off
checkhash       off
checkjobs       off
checkwinsize    off
cmdhist         on
compat31        off
compat32        off
compat40        off
compat41        off
compat42        off
complete_fullquote      on
direxpand       off
dirspell        off
dotglob         off
execfail        off
expand_aliases  on
extdebug        off
extglob         off
extquote        on
failglob        off
force_fignore   on
globstar        off
globasciiranges off
gnu_errfmt      off
histappend      off
histreedit      off
histverify      off
hostcomplete    on
huponexit       off
interactive_comments    on
lastpipe        off
lithist         off
login_shell     off
mailwarn        off
no_empty_cmd_completion off
nocaseglob      off
nocasematch     off
nullglob        off
progcomp        on
promptvars      on
restricted_shell        off
shift_verbose   off
sourcepath      on
xpg_echo        off

— Maarten Billemont (lhunath) —
me: http://www.lhunath.com – business: http://www.lyndir.comhttp://masterpasswordapp.com

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


reply via email to

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