mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 06:46:09 +08:00
Correct a realpath test
This used the *logical* $PWD, but realpath would operate on the physical $PWD if given ".", even with -s. This makes this test fail if the $PWD is logically different from physical.
This commit is contained in:
parent
0bcf5ac88d
commit
d62e22dcc0
@ -73,7 +73,7 @@ else
|
||||
end
|
||||
|
||||
set -l real_path (builtin realpath -s .)
|
||||
set -l expected_real_path (pwd) # Logical working directory.
|
||||
set -l expected_real_path (pwd -P) # Physical working directory.
|
||||
if test "$real_path" = "$expected_real_path"
|
||||
echo "relative path correctly handled"
|
||||
# CHECK: relative path correctly handled
|
||||
|
Loading…
x
Reference in New Issue
Block a user