LogCatch icon indicating copy to clipboard operation
LogCatch copied to clipboard

runOnShell issues with Bash on Ubuntu 22

Open silverark opened this issue 2 years ago • 1 comments

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.

silverark avatar Sep 09 '22 08:09 silverark

Thanks for your advise. As you say, i will change shebang to bash.

pikey8706 avatar Nov 05 '22 09:11 pikey8706