This seems to be a good solution, but needs some tweaking. As the path of the script itself is passed to the command specified by the shebang, your line almost instantely freezes the OS for as long as the script does not terminate (as it recursively creates instances of terminal and finally runs out of pseudo ttys).
After playing around a little bit with your idea, I came up with the following:
#!/bin/sh -c "Terminal /bin/sh $0"
Using this shebang, I was finally able to exactly archieve the behavior I wanted - running a shell script inside a terminal by double-clicking it’s icon on the desktop.
The whole webpage of ‘Pete’ was interesting, to discover and see : how different peoples are existing with exciting experiences and memories – connected via such thing as a software, a basic thing, like an OS (basic in that meaning : everyone uses to handle a device).
As my favourite vulcan proverb says : Infinite Diversity in Infinite Combinations
I’m a bit confused on how my version would give a recursion. I’ll test this out on my machine at some point.
Do note that in your example (atleast on haiku) it is sufficient to write “#!sh” instead of “#!/bin/sh” since the interpreter of the shebang line can look in default locations.
The script file is passed to the interpreter as $0. As terminal does no special treatment to the shebang line it recursively starts another terminal and so on. Shells recognize the shebang line in a script.