#!/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