LogCatch
LogCatch copied to clipboard
runOnShell issues with Bash on Ubuntu 22
I had issues running on Ubuntu 22. Your shebang of sh
on ubuntu sheems ot be causing issues. sh
on Ubuntu is a symbolic link to dash
which is version 0.5.11.
I had to change lines 11 and 13 of the runOnShell script to the following to get it to work on dash
.
wishes="$(which -a wish)"
for one in $wishes
Line 11 was giving these errors
./runOnShell: 11: Syntax error: "(" unexpected
./runOnShell: 11: /usr/local/opt/tcl-tk/bin/wish: not found
Line 13 was giving this error
./runOnShell: 13: Bad substitution
Alternately, updating the shebang to #!/bin/bash
also started the application without any issues.
Thanks for your advise. As you say, i will change shebang to bash.