From: Matthieu M. <Mat...@gr...> - 2012-02-27 09:03:57
|
Juri Hamburg <ju...@fa...> writes: >> I've just noticed that when pressing F2 to launch a terminal, notion >> creates 3 processes >> 1) sh >> 2) xterm >> 3) zsh (my default shell) [...] > Curious, byt I can't confirm an additional sh process while starting > an application over F3 without ion-runxterm (:). I don't find it curious at all. If you run "firefox http://example.com", then someone has to do the word-splitting and tell that the executable "firefox" should be launched with the argument "http://example.com". If you run "foobar > some-file", then someone has to do the redirection on "some-file" If you run "foo; bar", then someone has to run foo and bar in sequence. All these features and done by a shell. Ion could optimize the simple cases by running execvp() directly when there are no special character in the command (space, pipe, semicolon, ...), but for a very little gain. -- Matthieu Moy http://www-verimag.imag.fr/~moy/ |