[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Jari Aalto
Subject: Re: Linux: bash 'declare -f' adds trailing whitespaces to output
Date: Tue, 25 Sep 2007 18:43:13 +0300
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (windows-nt)

* Tue 2007-09-25 Chet Ramey <chet.ramey AT case.edu> 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"
>>     }
>> From shell:
>>     $ declare -f | grep testfunc -A 3 | cat -A
>> Result; notice the trailing whitespaces in output:
> It doesn't change the declaration or the semantics.  How is it a
> problem?

It smells like a bug to output trailing spaces for some lines and not
some others.(*)


(*) I sometimes "record" anvironment state and git does not like
trailing spaces for a good reason.

Welcome to FOSS revolution: we fix and modify until it shines

reply via email to

[Prev in Thread] Current Thread [Next in Thread]