Bug 5582

Summary: how to strip off arguments from previous run?
Product: frysk Reporter: Andrew Cagney <cagney>
Component: generalAssignee: Rick Moseley <rmoseley>
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 5572    

Description Andrew Cagney 2008-01-09 19:05:35 UTC
Consider the sequence:

(fhpd) load /bin/ls
Loaded executable ...
(fhpd) start -c               -- -c argument passed to /bin/ls
(fhpd) start -l               -- -l argument passed to /bin/ls
(fhpd) start                  -- previous argument (-l) passed to /bin/ls
(fhpd) start -????            -- want to run /bin/ls with no arguments.

suggestions include:

(fhpd) start -noargs
(fhpd) start --

perhaps start by considering how to specify that the option should be the
argument, for instance:

(fhpd) start -- --

might pass -- to the program?
Comment 1 Rick Moseley 2008-04-17 20:50:22 UTC
Fixed when bz's 5500, 5501 were.

Using -- as the parameter to specify no args to be passed.

(fhpd) run --    (will run without any arguments)
(fhpd) run -- --  (will pass -- to the process to be run)