mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
tests/path.sh: update regression test (re: 7cdb01f6
)
This commit is contained in:
parent
7cdb01f625
commit
fad16a0c63
1 changed files with 4 additions and 4 deletions
|
@ -577,11 +577,11 @@ fi
|
||||||
|
|
||||||
# wrong path to tracked aliases after loading builtin: https://github.com/ksh93/ksh/pull/25
|
# wrong path to tracked aliases after loading builtin: https://github.com/ksh93/ksh/pull/25
|
||||||
actual=$("$SHELL" -c '
|
actual=$("$SHELL" -c '
|
||||||
hash chmod
|
hash cat
|
||||||
builtin chmod
|
builtin cat
|
||||||
whence -a chmod
|
whence -a cat
|
||||||
')
|
')
|
||||||
expect=$'chmod is a shell builtin\n'$(all_paths chmod | sed '1 s/^/chmod is a tracked alias for /; 2,$ s/^/chmod is /')
|
expect=$'cat is a shell builtin\n'$(all_paths cat | sed '1 s/^/cat is a tracked alias for /; 2,$ s/^/cat is /')
|
||||||
[[ $actual == "$expect" ]] || err_exit "'whence -a' does not work correctly with tracked aliases" \
|
[[ $actual == "$expect" ]] || err_exit "'whence -a' does not work correctly with tracked aliases" \
|
||||||
"(expected $(printf %q "$expect"), got $(printf %q "$actual"))"
|
"(expected $(printf %q "$expect"), got $(printf %q "$actual"))"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue