From 2e6264558c1d548b95c2cb6eb1491d139af3a9e2 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Thu, 4 Apr 2019 22:25:45 -0500 Subject: [PATCH] Fix remaining realpath test issue with symlinks Pursuant to 0be79038590d3473b75252bf50ade2f62ea9c207, there still remained one issue with the test when run from within a symlinked directory after fish gained support for cding into symlinks. This change should make the test function OK both when the tests are run out of a PWD containing a symlink in its hierarchy and when run otherwise. --- tests/realpath.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/realpath.in b/tests/realpath.in index abaccf4cd..89397dd64 100644 --- a/tests/realpath.in +++ b/tests/realpath.in @@ -11,7 +11,7 @@ end # A non-existent file relative to $PWD succeeds. set -l real_path (builtin realpath nonexistent-file) -if test "$real_path" = "$PWD/nonexistent-file" +if test "$real_path" = (realpath $PWD)"/nonexistent-file" echo nonexistent-file in PWD correctly converted end