[ :Unexpected operator in shell programming [duplicate]

There is no mistake in your bash script. But you are executing it with sh which has a less extensive syntax 😉

So, run bash ./choose.sh instead 🙂

Leave a Comment