Bash $@ expansion undocumentedly ignoring '

2012-03-21 Thread Andreas Marschke
Dear Maintainers of bash, it has come to my attention that bash is unexpectedly removing quotes from parameters given to a script if read from within the script. See attached shell-script for a full explanation. -- Cheers, Andreas Marschke test.sh Description: Bourne shell script

Filename completion BS-quotes variable references

2012-03-21 Thread magagnosc
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKA

Re: Bash $@ expansion undocumentedly ignoring '

2012-03-21 Thread DJ Mills
On Wed, Mar 21, 2012 at 10:24 AM, Andreas Marschke wrote: > Dear Maintainers of bash, > > it has come to my attention that bash is unexpectedly removing quotes > from parameters given to a script if read from within the > script. See attached shell-script for a full explanation. > > -- > Cheers, >

Re: Bash $@ expansion undocumentedly ignoring '

2012-03-21 Thread suvayu ali
Hello Andreas, On Wed, Mar 21, 2012 at 15:24, Andreas Marschke wrote: > it has come to my attention that bash is unexpectedly removing quotes > from parameters given to a script if read from within the > script. See attached shell-script for a full explanation. You could have put the explanation

Re: Bash $@ expansion undocumentedly ignoring '

2012-03-21 Thread DJ Mills
On Wed, Mar 21, 2012 at 6:31 PM, suvayu ali wrote: > Hello Andreas, > > On Wed, Mar 21, 2012 at 15:24, Andreas Marschke > wrote: >> it has come to my attention that bash is unexpectedly removing quotes >> from parameters given to a script if read from within the >> script. See attached shell-scri

Re: Bash $@ expansion undocumentedly ignoring '

2012-03-21 Thread Eric Blake
On 03/21/2012 08:24 AM, Andreas Marschke wrote: > Dear Maintainers of bash, > > it has come to my attention that bash is unexpectedly removing quotes > from parameters given to a script if read from within the > script. See attached shell-script for a full explanation. > > # This does not consti

Re: Filename completion BS-quotes variable references

2012-03-21 Thread Chet Ramey
On 3/21/12 5:37 PM, magagn...@grammatech.com wrote: > Bash Version: 4.2 > Patch Level: 10 > Release Status: release > > Description: > Filename completion, typically by use of , causes variable > references in the typed path to be backslash-quoted, i.e. a backslash is > inserted before th