[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

Hi Jonathan,

Le 2011-12-25 03:52, Jonathan Nieder a écrit :
Filipus Klutiero wrote:
Le 2011-12-24 19:16, Russ Allbery a écrit :
     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.
Is "simple command" a term from POSIX?

Yes (see http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_09_01 ).
It makes me think of simple
commands passed to the shell, which is the opposite of the intended
meaning.  (e.g., “x-terminal-emulator -e vi 'some file'” is meant to
open 'some file' for editing, not two files named "some" and "file"
like “ssh localhost vi 'some file'” would do).

FWIW, I understand the parenthesis, but I don't really understand what you're saying.

Reply to: