Pádraig Brady <[email protected]> writes:

> * doc/coreutils.texi (pwd invocation): Describe the new quoting.
> * src/pwd.c (main): Enable quoting, depending on tty and $QUOTING_STYLE.
> * tests/misc/tty-quoting.sh: Add a pwd test case.
> * NEWS: Mention the new feature.
>
> Discovered by Anthropic's OSS Scanner, as bug ANT-2026-4L2T78XW.
> ---
>  NEWS                      |  4 ++++
>  doc/coreutils.texi        |  6 ++++++
>  src/pwd.c                 | 29 ++++++++++++++++++++++++++---
>  tests/misc/tty-quoting.sh | 16 +++++++++++++++-
>  4 files changed, 51 insertions(+), 4 deletions(-)

Just noting here, since this patch reminded me, that apparently tramp, a
package for GNU Emacs that allows editing remote files (e.g., over SSH,
in containers, etc.), ran into some trouble because of how we quoted.

I'm not sure of the full details, but I noticed they set
QUOTING_STYLE=literal:

    commit 8793bf68936eefec1ffb4989fcee320e8c9d72d7
    Author:     Michael Albinus <[email protected]>
    AuthorDate: Sun Nov 8 11:16:25 2026 +0100
    Commit:     Michael Albinus <[email protected]>
    CommitDate: Sun Nov 8 11:16:25 2026 +0100
    
        Tramp: Respect nes defaults in GNU coreutils 9.12
        
        * doc/misc/tramp.texi (Remote processes): Mention QUOTING_STYLE.
        
        * lisp/net/tramp.el (tramp-convert-file-attributes): Adapt regexp
        for symlink.
        
        * lisp/net/tramp-sh.el (tramp-open-shell): Use "QUOTING_STYLE=literal".
        (Bug#82170)
        (tramp-get-remote-stat): Better detection of GNU stat.
        
        * lisp/net/tramp-sudoedit.el (tramp-methods) <sudoedit>:
        Adapt `tramp-sudo-login' argument.
        (tramp-sudoedit-handle-file-attributes)
        (tramp-sudoedit-handle-file-name-all-completions): Adapt command.

Collin

Reply via email to