gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gforth] shebang support


From: Andrew Pennebaker
Subject: [gforth] shebang support
Date: Sat, 6 Oct 2012 09:44:09 -0400

Can we treat shebangs like comments, so that gforth programs can be run using dot slash notation in Unix?

hello.fs:

#!/usr/bin/env gforth

.\" Hello World!\n"
bye

Example:

$ chmod +x hello.fs
$ ./hello.fs
Hello World!

--
Cheers,

Andrew Pennebaker
www.yellosoft.us

reply via email to

[Prev in Thread] Current Thread [Next in Thread]