mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-02 07:53:43 +08:00
52731c480c
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 6c329e8a83
)
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
|