1
0
Fork 0
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:
Martijn Dekker 2021-12-16 09:20:00 +01:00
parent 7cdb01f625
commit fad16a0c63

View file

@ -577,11 +577,11 @@ fi
# wrong path to tracked aliases after loading builtin: https://github.com/ksh93/ksh/pull/25
actual=$("$SHELL" -c '
hash chmod
builtin chmod
whence -a chmod
hash cat
builtin cat
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" \
"(expected $(printf %q "$expect"), got $(printf %q "$actual"))"