[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#648271: [debian-policy] 11.8.3 "Packages providing a terminal emulator" says xterm passes -e option straight to exec



Le 2011-12-24 19:16, Russ Allbery a écrit :
Filipus Klutiero<chealer@gmail.com>  writes:

Regarding the formulation, your suggestion does fix the issue Hendrik
identified. I would still remind that the term "command" is ambiguous
(you must be referring to simple commands here).
I'm not sure how else to word it.  I tried to resolve that ambiguity, but
apparently wasn't successful.

Well, you suggested:

     Support the command-line option "-e<command>", which creates a new
     terminal window and runs the specified command.<command>  may be
     multiple arguments, all of which are part of the command.  All
     arguments are passed directly to exec, bypassing the shell.  (xterm's
     behavior of falling back on using the shell if -e had a single
     argument and exec failed is permissible but not required.)

I would simply suggest as a replacement:

     Support the command-line option "-e<command>", which creates a new
     terminal window and runs the specified simple command.<command>  may be
     multiple arguments, all of which are part of the simple command.  All
     arguments are passed directly to exec, bypassing the shell.  (xterm's
     behavior of falling back on using the shell if -e had a single
     argument and exec failed is permissible but not required.)
(<command> could be replaced by <simple command>, but I think that will be clear enough already.)

Also, I suggest to make the policy as implementation-independent as
possible, ideally avoiding to force usage of exec.
But that matters for interoperability.  The point of this section is to be
able to issue the command:

     x-terminal-emulator -e vi 'some file'

and know that it works.  If you don't use exec, it won't.


I don't see why exec would be necessary. As long as the emulator supports being given any simple command as its -e option, such commands should work.




Reply to: