A port of the GTK+3 Hello World to Bash
github.com
github.com
--------------------------------------------------------
#!/usr/bin/env bash
cat <<EOF | /usr/local/bin/wish
package require Tk
pack [button .b -text {Push Me} -command {
tk_messageBox -message {hello, world}
}]EOF
--------------------------------------------------------
Of course doing it directly in Tk Tcl would be even more portable, readable, simple and smarter and easier to deploy/maintain.
And at the opposite of gtk team tk team does not breaks API for the pleasure of being more right than the users.
So it would be a win-win-win situation to use Tk/Tcl instead of gtk3.
#!/bin/sh
# \
exec wish "$0" ${1+"$@"}
( You wouldn't need the cat pipe. )This gives people who know only bash the ability to create a mess rather than learn a real scripting language like Python.
But eventually I dropped GTK and switched to Qt. I thought they worked through all the common issues with better solutions.
Since I haven't heard any screams of anguish coming from Windows people, I wouldn't worry about it.
Would you rather that something like this not be possible or that people would not create things like this?