5 ms·
I didn't think of this but I use it: % ./hworld.tcl Hello, world. % cat hworld.tcl #!/bin/sh # the next line restarts using tcl \ exec tclsh "$0
by mzs 2y ago
I didn't think of this but I use it:
% ./hworld.tcl
Hello, world.
% cat hworld.tcl
#!/bin/sh
# the next line restarts using tcl \
exec tclsh "$0" "$@"
puts "Hello, world."
%
Turns-out that in TCL you can line continue a comment :)