You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running ./bin/wasabi.sh start:cassandra,mysql (or any other start sequence) I get syntax errors:
./bin/wasabi.sh: line 317: syntax error near unexpected token `&'
./bin/wasabi.sh: line 317: ` start) command="start:cassandra,mysql,wasabi";&'
I am using zsh (version 5.2) but also tried to run it with the vanilla OSX bash shell (version 3.2.57(1)-release from 2007), same error applies. Neither bash 3.2 nor zsh 5.0.8 support ;& as fall through, only bash 4(.3 linked).
For now I will be using an older script (git checkout origin/feature/experiment_pagination -- ./bin/wasabi.sh ./bin/container.sh).
Update: To use the script with zsh one has to do it explicitly: zsh ./bin/wasabi.sh thanks to the shebang line. However == still causes problems then. So it is probably the best idea to get bash 3.2 upgraded automatically.
Update 2: After posting this issue to the zsh mailing list Bart Schäfer recommended in a private mail to use the following: ARGV0=sh zsh wasabi.sh, which seems to solve the problems. I will now alias this in my rc file.
However that doesn't solve the bash 3.2 issue, so I will leave this open for now.
The text was updated successfully, but these errors were encountered:
When running
./bin/wasabi.sh start:cassandra,mysql
(or any other start sequence) I get syntax errors:I am using zsh (version 5.2) but also tried to run it with the vanilla OSX bash shell (version 3.2.57(1)-release from 2007), same error applies. Neither bash 3.2 nor zsh 5.0.8 support
;&
as fall through, only bash 4(.3 linked).It's not only wasabi.sh but also in container.sh.
The problem is also described on stackoverflow. To make the script more portable, consider portability and POSIX compliance.
For now I will be using an older script (
git checkout origin/feature/experiment_pagination -- ./bin/wasabi.sh ./bin/container.sh
).Update: To use the script with zsh one has to do it explicitly:
zsh ./bin/wasabi.sh
thanks to the shebang line. However==
still causes problems then. So it is probably the best idea to get bash 3.2 upgraded automatically.Update 2: After posting this issue to the zsh mailing list Bart Schäfer recommended in a private mail to use the following:
ARGV0=sh zsh wasabi.sh
, which seems to solve the problems. I will now alias this in my rc file.However that doesn't solve the bash 3.2 issue, so I will leave this open for now.
The text was updated successfully, but these errors were encountered: