On Thu, Nov 22, 2012 at 01:00:04PM +0100, Bernd Paysan wrote: > > This should work without needing non-standard literals: > > : ## ; 0 [IF] > > > > ... > > [THEN] > > # is the Forth200x decimal number prefix, so it's standard.
David's trick is even Forth-94. I don't remember what the meaning of : for the shell is, though. Ah, there it is: |: [arguments] | No effect; the command does nothing beyond expanding arguments | and performing any specified redirections. A zero exit code is | returned. > That's a good > thing, making this multi-line shebang (almost) fully standard Forth, so all a > Forth needs is the #! comment command. Yes. It's also implemented in vfxlin, but not in SwiftForth. - anton
