Closed nokazn closed 3 years ago
Hi, there. I run the below command, and encounter a syntax error in Ubuntu 20.04 environment. Ubuntu uses dash to run shell scripts as default, and dash cannot interpret select .. in statement in init.sh.
select .. in
init.sh
$ ./init.sh ./init.sh: 48: Syntax error: "do" unexpected (expecting ";;")
So, I think specifying the interpreter by sheabang enable to support almost all environments.
Thanks! That makes sense :)
Overview
Hi, there. I run the below command, and encounter a syntax error in Ubuntu 20.04 environment. Ubuntu uses dash to run shell scripts as default, and dash cannot interpret
select .. in
statement ininit.sh
.So, I think specifying the interpreter by sheabang enable to support almost all environments.