bug-bash
[Top][All Lists]
Advanced

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

Re: Red-Hat Bug 825751 - bash-completion fails on environment variables


From: DJ Mills
Subject: Re: Red-Hat Bug 825751 - bash-completion fails on environment variables
Date: Wed, 30 May 2012 11:05:09 -0400

On Tue, May 29, 2012 at 8:34 AM, John E. Malmberg <wb8tyw@qsl.net> wrote:
>
> On this platform, file names with $ in them tend to show up as they have
> special meaning.
>
> BASH-4.2$ echo *\$*
> GNV$BASH.DSF GNV$BASH.EXE GNV$BASH.MAP GNV$SHELL.C_FIRST GNV$VERSION.C_FIRST
> gnv$bash_startup.com gnv$main_wrapper gnv$vms_main_link.exe
>
> Regards,
> -John
>

Pathname expansion doesn't perform any escaping... this is a
completely separate thing from the readline tab completion issue.

touch 'foo bar' 'baz blah'; echo *\ *
baz blah foo bar

echo takes its arguments and concatenates them with spaces... using
printf can show that they're properly escaped.
touch 'foo bar' 'baz blah'; printf '<%s> ' *\ *; echo
<baz blah> <foo bar>



reply via email to

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