On Sat, Oct 2, 2021 at 7:54 PM Andreas Kusalananda Kähäri
<andreas.kah...@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