Euphoria Ticket #725: Front end overly aggressive with command line options

The euphoria front end is overly aggressive in pulling command line options. It should only use those that come before the main file, but it ends up consuming those meant for the program to be run. Consider:

-- cmd.e 
sequence cmd = command_line()  
if find("-c",cmd) != 0 then  
    puts(1,"-c is present.\n")  
    puts(1,"-c is not detected.\n")  
end if  

$ eui cmd.e -c  
-c is present.  
$ eui cmd.e -c foo  
-c is not detected.  


Type: Bug Report Severity: Major Category: Front End
Assigned To: unknown Status: Fixed Reported Release: 4.0.3
Fixed in SVN #: View VCS: none Milestone: 4.0.4

1. Comment by SDPringle Nov 15, 2011

I attempt to fix this in 0d687c8f3fdb but when I do the build dies with an error of having more than one 'extras' records. This is open. I have no time to finish this today.

2. Comment by mattlewis Nov 15, 2011

See: hg:euphoria/rev/0b55602b9d41

changeset: 5242:0b55602b9d41 branch: 4.0 parent: 5238:dc23cc03b881 user: Matt Lewis date: Tue Nov 15 11:36:10 2011 -0500 files: source/cominit.e source/msgtext.e description:

  • look for the user's program to avoid accidentally using command line arguments for euphoria that were meant for end user program
  • maybe fixes ticket:725

3. Comment by mattlewis Nov 17, 2011

See: hg:euphoria/rev/e622b812aa26

changeset: 5250:e622b812aa26 branch: 4.0 parent: 5242:0b55602b9d41 user: Matt Lewis date: Thu Nov 17 08:15:58 2011 -0500 files: docs/release/4.0.4.txt description:

  • release note for ticket 725

4. Comment by mattlewis Nov 21, 2011

Marking fixed, please confirm after changeset hg:euphoria/rev/b1e3058ac542


Quick Links

User menu

Not signed in.

Misc Menu