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

 
 

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

Submitted by:  None
Submitted on:  Wed 21 Aug 2013 07:30:37 AM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Anton Ertl <anton>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 21 Aug 2013 11:04:44 AM UTCantonSeverity3 - Normal=>1 - Wish
      StatusNone=>Fixed
      Assigned toNone=>anton
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1