Post #2806626
2026-05-03 22:06 UTC
@mattskala@mstdn.io
Anyone who tries to parse the ls output for symlink status rather than using https://manpages.debian.org/trixie/coreutils/stat.1.en.html (and doesn't do so in a shell with potential output-changing environment variables cleared) deserves for their scripts to be broken.
ls is an interactive program, its output should not be considered parseable.
@bkuhn@fedi.copyleft.org @vagrantc@floss.social @mjw@mastodon.nl
Replies (1)
-
@mattskala@mstdn.io 2026-05-03 22:08
@wouter@pleroma.debian.social @bkuhn@fedi.copyleft.org @vagrantc@floss.social @mjw@mastodon.nl I know both "ln" and "ls" are being discussed in this thread, but I thought I was replying to an item in which you said you wanted to change the default behaviour of ln, not ls...