bash-menu-generator icon indicating copy to clipboard operation
bash-menu-generator copied to clipboard

Syntax error: "(" unexpected

Open OckhamOdyssey opened this issue 5 years ago • 0 comments

Every time I try to run the example the following problem always appears:

./menu.sh: 16: ./menu.sh: Syntax error: "(" unexpected

I have noticed that this appears because the terminal tries to execute the script with sh, which doesn't allow some expressions, and not with bash. To solve it I think the best thing would be to change the first line of menu.sh to #!/bin/bash

OckhamOdyssey avatar Nov 17 '20 07:11 OckhamOdyssey