mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-05 05:23:25 +08:00

Not all distros have a `realpath` command. Provide a function that uses the real command if available else use the fish builtin. Fixes #2932 (cherry picked from commit 6c329e8a839c1b5eeaf2e545b4f4084c3a8830f7)
4 lines
201 B
Plaintext
4 lines
201 B
Plaintext
fish_realpath: Invalid path: /this/better/be/an/invalid/path
|
|
fish_realpath: Invalid path: nonexistent-file
|
|
fish_realpath: Invalid path: ../test/data/fish-symlink/nonexistent-file-relative-to-a-symlink
|