test_popen_sh/subdir/entry.sh
2024-10-10 20:53:37 +09:00

11 lines
163 B
Bash
Executable file

#!/bin/env bash
set -euo pipefail
echo "Hi, this is entry.sh"
echo "pwd:"
pwd
echo "\${0}: ${0}"
cd "$(dirname "${0}")"
./called.sh
echo $?
echo "returned"
exit 0