Closed jpurvis2 closed 1 year ago
As we talked about after class today, this looks like it is related to the shell that is running, and even if you run it with sh
or bash
and even though there is a shebang in the script file, it seems not to want to run in ZSH.
So, you have a few options.
bash
in your ZSH and it will open a bash environment that you can then use to run Bash scripts.I'm not sure why MacOS doesn't want to run that file in ZSH, even with the shebang and even if you are specifically invoking another shell to run it, but the above provide some workarounds.
What is happening?
Trying to run galso.sh file
"galo.sh % sh galo.sh -n 35 -e 35 -z" "sh galo.sh -v -n 35 -e 35 -z"
and I am just getting "no options"
What does the error say is happening?
jordanpurvis@MacBook-Pro-97 galo.sh % sh galo.sh -n 35 -e 35 -z no options jordanpurvis@MacBook-Pro-97 galo.sh % sh galo.sh -v -n 35 -e 35 -z no options jordanpurvis@MacBook-Pro-97 galo.sh % ./galo.sh -v -n 35 -e 35 -z no options jordanpurvis@MacBook-Pro-97 galo.sh % ./galo.sh -v -n35 -e35 -z no options jordanpurvis@MacBook-Pro-97 galo.sh % ./galo.sh -v -n35 -e35 -z no options jordanpurvis@MacBook-Pro-97 galo.sh % ./galo.sh -v -n35 -e35 -z no options jordanpurvis@MacBook-Pro-97 galo.sh % bash-galo.sh -v -n35 -e35 -z