Re: Backslashed space in variable/argument expansion does not prevent splitting.

2016-06-17 Thread Greg Wooledge
On Fri, Jun 17, 2016 at 11:21:42AM +0100, Dean Wakerley wrote: > I ran into this problem when trying to buiild a TCL extension. Building > the extension requires pulling in    with source tclConfig.sh which > provides various settings. TCL_DEFS contains space separated -D > arguments    to pass

Re: Backslashed space in variable/argument expansion does not prevent splitting.

2016-06-17 Thread Chet Ramey
On 6/17/16 6:21 AM, Dean Wakerley wrote: > Bash Version: 4.3 > Patch Level: 42 > Release Status: release > > Description: > The expansion of a variable containing spaces splits on all spaces > including escaped/backslashed space. This analysis isn't correct, and the description above describes

Re: Backslashed space in variable/argument expansion does not prevent splitting.

2016-06-17 Thread Davide Brini
On Fri, 17 Jun 2016 11:21:42 +0100, Dean Wakerley wrote: > Description: The expansion of a variable containing spaces splits on all > spaces including escaped/backslashed space. It's not a bug, you probably want eval ./echo_args.sh ${TCL_DEFS} but you're sitting on very thin ice here. -- D.

Backslashed space in variable/argument expansion does not prevent splitting.

2016-06-17 Thread Dean Wakerley
From: deanw To: bug-bash@gnu.org Subject: Backslashed space in variable expansion does not prevent splitting. Configuration Information [Automatically generated, do not change]: Machine: i686 OS: cygwin Compiler: gcc Compilation CFLAGS:  - DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE=