[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gforth] Using Gforth with #! "shebang"
From: |
Anton Ertl |
Subject: |
Re: [gforth] Using Gforth with #! "shebang" |
Date: |
Thu, 22 Nov 2012 13:25:18 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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
- [gforth] Using Gforth with #! "shebang", David Kuehling, 2012/11/20
- Re: [gforth] Using Gforth with #! "shebang", Andrew Pennebaker, 2012/11/20
- Re: [gforth] Using Gforth with #! "shebang", Anton Ertl, 2012/11/21
- Re: [gforth] Using Gforth with #! "shebang", David Kuehling, 2012/11/21
- Re: [gforth] Using Gforth with #! "shebang", Bernd Paysan, 2012/11/21
- Re: [gforth] Using Gforth with #! "shebang", Anton Ertl, 2012/11/21
- Re: [gforth] Using Gforth with #! "shebang", Bernd Paysan, 2012/11/21
- Re: [gforth] Using Gforth with #! "shebang", David Kuehling, 2012/11/21
- Re: [gforth] Using Gforth with #! "shebang", Bernd Paysan, 2012/11/22
- Re: [gforth] Using Gforth with #! "shebang",
Anton Ertl <=
- Re: [gforth] Using Gforth with #! "shebang", Bernd Paysan, 2012/11/22
Re: [gforth] Using Gforth with #! "shebang", Bernd Paysan, 2012/11/21