mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
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.
This commit is contained in:
parent
be80a56ad4
commit
2e6264558c
@ -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…
x
Reference in New Issue
Block a user