mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
tests: Print $PWD if resolving fails
Seems to be a macOS issue
This commit is contained in:
parent
d13ba046b0
commit
23a5e53247
1 changed files with 1 additions and 0 deletions
|
@ -115,6 +115,7 @@ path resolve bin//sh | string match -r -- 'bin/bash$'
|
||||||
set -l path (path resolve foo/bar)
|
set -l path (path resolve foo/bar)
|
||||||
string match -rq "^"(string escape --style=regex -- $PWD)'/' -- $path
|
string match -rq "^"(string escape --style=regex -- $PWD)'/' -- $path
|
||||||
and echo It matches pwd!
|
and echo It matches pwd!
|
||||||
|
or echo pwd is \'$PWD\' resolved path is \'$path\'
|
||||||
# CHECK: It matches pwd!
|
# CHECK: It matches pwd!
|
||||||
string replace -r "^"(string escape --style=regex -- $PWD)'/' "" -- $path
|
string replace -r "^"(string escape --style=regex -- $PWD)'/' "" -- $path
|
||||||
# CHECK: foo/bar
|
# CHECK: foo/bar
|
||||||
|
|
Loading…
Reference in a new issue