Closed mouse07410 closed 4 years ago
As the #!/bin/bash at the top of the file indicates, this is a bash script. And those are a bash feature. Search for ^^ on https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html.
@jschanck I understand now what you tried to do with ^^
, but unfortunately it didn't work on Mac and CentOS - just blew the script. Needless to say, I used bash on all of the platforms - fairly recent on Mac, and whatever version came with CentOS.
Perhaps what you tried to accomplish with that conversion, isn't worth breaking at least two platforms?
OK, ^^ is newer than I thought. Fixed.
Thanks!
FYI, on Mac I have bash v5.0.17 and 3.2.57 (system-provided), on CentOS - v4.4.19.
Fix below (tested):