bug-bash
[Top][All Lists]
Advanced

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

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


From: Chet Ramey
Subject: Re: Linux: bash 'declare -f' adds trailing whitespaces to output
Date: Tue, 25 Sep 2007 10:32:16 -0400
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)

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?

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                       Live Strong.  No day but today.
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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