Open yeban opened 7 years ago
Works with zsh here. The error looks like the script was invoked with sh
, which would not recognise the array on line 3. I suppose that can happen if zsh is not your login shell and sh
is. Maybe the script should specify a shebang line on top: #!/bin/bash
. Feel free to test the idea and send a pull request.
Yes -- agreed. I quickly figured out that I needed to run this with bash, but the error when run from the zsh shell is this:
would be nice to see a error like: "run me with bash"