At 1243262516 time_t, Mike Hommey wrote: > What kind of error report isn't possible with sh ? > $ sh -c plop > sh: plop: command not found > $ echo $? > 127 > $ sh -c false > $ echo $? > 1
If you start "sh -c firefox", you can't know that firefox really started unless you wait for sh to return. But sh won't return until firefox get closed. OTOH: $ sh -c "false &" ; echo $? 0 $ sh -c 'i-am-a-program-that-do-not-exists &'; echo $? 0 sh: i-am-a-program-that-do-not-exists: command not found fails also. awesome uses g_spawn() from glib that deals with that problem and do a good error reporting. Cheers, -- Julien Danjou .''`. Debian Developer : :' : http://julien.danjou.info `. `' http://people.debian.org/~acid `- 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD
signature.asc
Description: Digital signature

