Re: [Parameter Expansion] bug in ${variable% *}

2013-02-12 Thread Dashing
On Tue, 12 Feb 2013 18:02:05 +0100 "Chet Ramey" >I've fixed the problem, and the fix will be in the next release. Thank you, Chet! On Tue, 12 Feb 2013 10:13:46 +0100 "Bernd Eggink" >superfluous blank in the ${rest: -1} expression Bernd, this blank makes a big difference: ${rest: -1} last chara

Re: [Parameter Expansion] bug in ${variable% *}

2013-02-12 Thread Dashing
On Tue, 12 Feb 2013 14:45:26 +0100 "Greg Wooledge" wrote: >There are no literal backslashes in an argument that is >produced by tab completion. The backslashes are a form >of quoting, and they are removed by the calling shell >during the quote removal phase. When bind -x sets READLINE_LINE back

Re: [Parameter Expansion] bug in ${variable% *}

2013-02-12 Thread Dashing
On Tue, 12 Feb 2013 14:16:24 +0100 "Greg Wooledge" wrote: >On Mon, Feb 11, 2013 at 06:50:49PM +0100, Dashing wrote: >> $ ./pe 'mplayer foo1\ foo2\ foo3\ 4\ 5\ foo6\ 7' >> :--Mistake--: >> :--Mistake--: > >Whatever you're doing, it'

[Parameter Expansion] bug in ${variable% *}

2013-02-11 Thread Dashing
work. This commented out code also avoids an infinite loop which is triggerable in a normal way with an argument of: command\ filename Thanks, Dashing