Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runOnShell issues with Bash on Ubuntu 22 #11

Open
silverark opened this issue Sep 9, 2022 · 1 comment
Open

runOnShell issues with Bash on Ubuntu 22 #11

silverark opened this issue Sep 9, 2022 · 1 comment

Comments

@silverark
Copy link

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.

@pikey8706
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants