bug-bash
[Top][All Lists]
Advanced

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

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


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

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:

    testfunc () $
    { $
        echo "this is test"$
    }$

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




reply via email to

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