bugGforth - Bugs: bug #39835, RFE add option to skip 1st line,...

 
 

bug #39835: RFE add option to skip 1st line, for scripting

Submitter:  None
Submitted:  Wed 21 Aug 2013 07:30:37 AM UTC
   
 
Category:  None Severity:  1 - Wish
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  anton
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 21 Aug 2013 11:04:44 AM UTC, comment #1: 

You can already use Forth scripts with #!, you just need to put a space between #! and /:

#! /usr/bin/gforth
.( hello ) cr bye

Maybe the documentation of that feature could be improved, though.

Anton Ertl <anton>
Group administrator
Wed 21 Aug 2013 07:30:37 AM UTC, original submission:  

It would be nice if gforth (and gforth-fast, etc.) accepted a command line argument to skip the first line of input, for purpose of making executable scripts without having to fork yet another shell.  Ie.

#!/usr/bin/gforth --skip-first-line
: foo 2 3 + ;   \ ...

The command line option prevents the #!/usr/bin/gforth from being interpreted by the compiler.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by anton (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-21 anton Severity3 - Normal 1 - Wish
        StatusNone Fixed
        Assigned toNone anton
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code