Re: Linux: bash 'declare -f' adds trailing whitespaces to output

2007-09-25 Thread Jari Aalto
* Tue 2007-09-25 Chet Ramey INBOX > Jari Aalto wrote: > >> Tested in: >> >> GNU bash, version 2.05.0(1)-release (sparc-sun-solaris2.9) >> GNU bash, version 3.2.25(16)-release (i686-pc-cygwin) >> >> An example: >> >> function testfunc () >> { >> echo "this is test" >>

Re: Linux: bash 'declare -f' adds trailing whitespaces to output

2007-09-25 Thread Chet Ramey
Jari Aalto wrote: > Tested in: > > GNU bash, version 2.05.0(1)-release (sparc-sun-solaris2.9) > GNU bash, version 3.2.25(16)-release (i686-pc-cygwin) > > An example: > > function testfunc () > { > echo "this is test" > } > > From shell: > > $ declare -f | grep t

Re: Linux: bash 'declare -f' adds trailing whitespaces to output

2007-09-25 Thread Jan Schampera
Jari Aalto wrote: testfunc () $ { $ echo "this is test"$ }$ Just a thought: It looks like there is a system behind it. So I guess it's some parser thing that needs it like that. However, just guessing. Jan

Linux: bash 'declare -f' adds trailing whitespaces to output

2007-09-25 Thread Jari Aalto
Tested in: GNU bash, version 2.05.0(1)-release (sparc-sun-solaris2.9) GNU bash, version 3.2.25(16)-release (i686-pc-cygwin) An example: function testfunc () { echo "this is test" } >From shell: $ declare -f | grep testfunc -A 3 | cat -A Result; notice the trai