Nushell ls gives clickable links in its result, resulting in a technical correct, but perhaps a bit unexpected result. #2762
-
I was going to rename some symlinks for clang-18 to just clang after using the install scripts from llvm. I did an issue in nushell here: nushell/nushell#12255 So its technically not a bug anywhere as I understand it, but it gives a bit unexpected result perhaps? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I have absolutely no idea what you're talking about. I read the linked issue and I still don't understand. Please provide a set of commands that I can run along with actual output and expected output. |
Beta Was this translation helpful? Give feedback.
Yes, okay, @ltrzesniewski's comment helped me figure this out. It's not just
ls --hyperlink
, but also ripgrep's color configuration. In particular, you report that this happens with ripgrep and not grep. That is likely because you don't have colors enabled for grep. Moreover,ls --hyperlink
probably shouldn't be used at all. It should bels --hyperlink=auto
. The former forces hyperlinks to be written, where as the latter will suppress them when pipingls
to some other tool. That's the right default. See: