Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rerunning under Bash doesn't work #59

Open
dmtucker opened this issue Nov 13, 2018 · 0 comments
Open

Rerunning under Bash doesn't work #59

dmtucker opened this issue Nov 13, 2018 · 0 comments
Labels
legacy This applies to the legacy branch.

Comments

@dmtucker
Copy link
Contributor

if [ -z "$BASH_VERSION" ] ; then
# probably using zsh...
echo "Script not run from bash -- reinvoking under bash"
bash "$0"
exit $?
fi

$ cat poc.sh
echo $0
$ zsh poc.sh 1 2 3
poc.sh

This should probably be bash $@.

@tucked tucked added the legacy This applies to the legacy branch. label Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy This applies to the legacy branch.
Projects
None yet
Development

No branches or pull requests

2 participants