]> git.ipfire.org Git - thirdparty/coreutils.git/commit
realpath: quote problematic names on tty
authorPádraig Brady <P@draigBrady.com>
Thu, 30 Jul 2026 15:12:20 +0000 (16:12 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 1 Aug 2026 11:38:28 +0000 (12:38 +0100)
commit05ab72f236bea585f6698c1099641f3de91762e5
tree0012a7f6aea7086e265e0cc5b022fd911986fb0d
parentb9ed8168ac23b45d18cb4107be49051a31a145cb
realpath: quote problematic names on tty

* doc/coreutils.texi: Mention $QUOTING_STYLE is significant.
* src/realpath.c (print_relative_path): New function to buffer
relative paths when quoting, and otherwise stream them.
(main): Look up $QUOTING_STYLE when outputting to a tty and
--zero is not specified.
* tests/misc/realpath.sh: Add a test case.
* NEWS: Mention the improvement.
NEWS
doc/coreutils.texi
src/realpath.c
tests/misc/realpath.sh