Re: quoted and concatenated positional parameters

2012-05-29 Thread Chet Ramey
On 5/23/12 10:47 PM, gregrwm wrote: > Machine Type: x86_64-redhat-linux-gnu > > Bash Version: 4.1 > Patch Level: 2 > Release Status: release > > Description: > expansion anomaly with quoted and concatenated positional parameters This wasn't actually th

Re: quoted and concatenated positional parameters

2012-05-23 Thread Dan Douglas
Ugh, Sorry, I forgot to strip trailing whitespace. If that wasn't comprehensible for anyone, the heredoc in the preceeding the testcase was: args() { printf '<%s> ' "$@"; echo; } args "${@}${1}" args "${@}foo" args ${@}${1} args ${@}foo IFS= args ${@}${1} args ${@}foo EOF -- Dan Douglas

Re: quoted and concatenated positional parameters

2012-05-23 Thread Dan Douglas
On Wednesday, May 23, 2012 09:47:33 PM gregrwm wrote: > expansion anomaly with quoted and concatenated positional parameters Also reproducible in 4.2.28(1)-release This occurs when any expansion is adjacent to or contained within a word that is adjacent to an expansion of the from "$@&

quoted and concatenated positional parameters

2012-05-23 Thread gregrwm
pv uname output: Linux okra.fo4.net 2.6.32-042stab053.5 #1 SMP Tue Mar 27 11:42:17 MSD 2012 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-redhat-linux-gnu Bash Version: 4.1 Patch Level: 2 Release Status: release Description: expansion anomaly with quoted and concatenated positional p