If relative path was used, use it

This was inadvertently changed in
ed78fd2a5f

Fixes #9143
This commit is contained in:
Fabian Boehm
2022-08-15 20:01:17 +02:00
parent c294c80214
commit 40733ca25b
2 changed files with 8 additions and 3 deletions

View File

@@ -568,3 +568,9 @@ $fish -c 'echo \utest'
# CHECKERR: fish: Invalid token '\utest'
# CHECKERR: echo \utest
# CHECKERR: ^~~~~^
printf '%s\n' "#!/bin/sh" 'echo $0' > $tmpdir/argv0.sh
chmod +x $tmpdir/argv0.sh
cd $tmpdir
./argv0.sh
# CHECK: ./argv0.sh