Bug 5582 - how to strip off arguments from previous run?
Summary: how to strip off arguments from previous run?
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Rick Moseley
Depends on:
Blocks: 5572
  Show dependency treegraph
Reported: 2008-01-09 19:05 UTC by Andrew Cagney
Modified: 2008-04-17 20:50 UTC (History)
0 users

See Also:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
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)