From 6c329e8a839c1b5eeaf2e545b4f4084c3a8830f7 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Wed, 13 Apr 2016 17:14:50 -0700 Subject: provide a realpath implementation Not all distros have a `realpath` command. Provide a function that uses the real command if available else use the fish builtin. Fixes #2932 --- tests/fish_realpath.out | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/fish_realpath.out (limited to 'tests/fish_realpath.out') diff --git a/tests/fish_realpath.out b/tests/fish_realpath.out new file mode 100644 index 00000000..d14bca83 --- /dev/null +++ b/tests/fish_realpath.out @@ -0,0 +1,5 @@ +first invalid path handled okay +/ +fish +fish/real_file +pwd-resolved-to-itself -- cgit v1.2.3