🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
2 messages
2 total messages Started by Collin Funk Fri, 30 Oct 2026 23:00
Bug#1152651: Upstream patch should be used for 'printenv' and 'env' quoting in 9.12
#2764
Author: Collin Funk
Date: Fri, 30 Oct 2026 23:00
44 lines
4276 bytes
Package: coreutils
Version: 9.12-0.2
Severity: normal
X-Debbugs-Cc: collin.funk1@gmail.com, P@draigBrady.com, daniel@debian.org

Hi,

For context, I co-maintain GNU coreutils upstream.

I see that Debian updated to coreutils-9.12. In it we made a quoting
change to 'env' and 'printenv' which were a bit too aggressive. A large
part of the rationale was improved robustness, avoiding applications
getting confused with environment variables that may have newlines or
other strange characters. Here is the pre-9.12 behavior:

    $ env -i ENV='hello'$'\n''FAKE_ENV=goodbye' env
    ENV=hello
    FAKE_ENV=goodbye

Here is the 9.12 behavior, making it clear that FAKE_ENV is not an
environment variable:

    $ env -i ENV='hello'$'\n''FAKE_ENV=goodbye' ~/.local/bin/env
    ENV='hello'$'\n''FAKE_ENV=goodbye'

However, this caused some issues that we did not foresee from our
scanning of Debian Code Search [1] [2].

I suggest applying a patch we made after the 9.12 release [3], which quotes
only when standard output is a terminal. This avoids the issues that
arose from the change in 9.12. Apologies for the additional work.

P.S., while you are there, I also suggest adding libcap-dev to the
Build-Depends. Currently, on Debian, the package is being built without
capability support since libsystemd, which coreutils depends on, no
longer brings in libcap as a dependency. I reported that, along with a
patch in 1150670 [4].

Collin

[1] https://lists.gnu.org/archive/html/coreutils/2026-09/msg00061.html
[2] https://lists.gnu.org/archive/html/coreutils/2026-09/msg00062.html
[3] https://github.com/coreutils/coreutils/commit/782a1e5bc2090212273bb731dceee2cc2a071e54.patch
[4] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1150670
Bug#1152651: Upstream patch should be used for 'printenv' and 'env' quoting in 9.12
#2766
Author: Daniel Baumann
Date: Fri, 30 Oct 2026 23:20
13 lines
2089 bytes
Hi Collin,

On 10/30/26 23:56, Collin Funk wrote:
> I suggest applying a patch we made after the 9.12 release [3]

thanks, I've just uploaded 9.12-0.3 with that.

> I also suggest adding libcap-dev to the Build-Depends.

indeed, thanks. I've also did that in 9.12-0.3.

Regards,
Daniel
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads