mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Fix remaining realpath test issue with symlinks
Pursuant to 0be7903859
, 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.
This commit is contained in:
parent
be80a56ad4
commit
2e6264558c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue