Code: Select all
#!/bin/sh
# the next line restarts using tclsh \
exec wish "$0" "$0 $@"
The file's permissions are 644.
In a console window,
if I pass the script name as an argument to 'wish', it runs fine;
if I pass the script name as an argument to 'bash', it runs fine;
if I source the script name, it exits the console process.
All good so far.
In ROX-filer its MIME type is shown as application/x-shellscript.
Under Precise Puppy, if I click on it in ROX-filer, it will execute the TCL/TK code as expected, displays windows, etc.
However, under Quirky April, it fails to execute. The icon in the ROX-filer window flashes about four times, but nothing else happens.
Grateful for any clues ...