bug-bash
[Top][All Lists]
Advanced

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

Re: Request change to output of declare -f funcname


From: Oğuz
Subject: Re: Request change to output of declare -f funcname
Date: Sat, 2 Oct 2021 22:34:11 +0300

On Sat, Oct 2, 2021 at 7:54 PM Andreas Kusalananda Kähäri
<andreas.kahari@abc.se> wrote:
> I don't think their issue is that the output from declare -f is ever
> invalid as such, but that their usage of the resulting text involves
> replacing newlines with spaces, which turns it into invalid shell code.
Not spaces, but backslashes followed by newlines.

    sudo -i echo 'foo
bar'

prints `foobar', not `foo bar'.

Anyway, I agree that this is a bug in sudo that should be fixed there.
>
> --
> Andreas (Kusalananda) Kähäri
> SciLifeLab, NBIS, ICM
> Uppsala University, Sweden
>
> .
>



reply via email to

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