Re: `declare -fp` mishandles heredoc with || statement

2013-06-01 Thread Mike Frysinger
On Saturday 01 June 2013 17:07:33 Chet Ramey wrote: > On 5/31/13 10:37 PM, Mike Frysinger wrote: > > simple code snippet: > > $ cat test.sh > > func() { > > cat > / < > 11 > > EOF > > } > > declare -fp > > > > when run, we see the || statement is incorrectly moved to after the > > heredoc: $ bash

Re: `declare -fp` mishandles heredoc with || statement

2013-06-01 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/31/13 10:37 PM, Mike Frysinger wrote: > simple code snippet: > $ cat test.sh > func() { > cat > / < 11 > EOF > } > declare -fp > > when run, we see the || statement is incorrectly moved to after the heredoc: > $ bash ./test.sh > func () > { >

Re: COMPREPLY scope

2013-06-01 Thread Raphaƫl Droz
On Fri, May 17, 2013 at 02:50:09PM -0700, Mario Signorino wrote: > Another idea is to add a delimitation around the completion result: I > could trap it easily. But I did not find how do that. I thought about time some times ago. My goal was to enclose the burn-cd files completion result with a t