Re: [dev] hotkey (1) - a suckless global keybinder
On 09/02/14, Chris Down wrote:
> On 2014-02-09 01:43:55 -0500, Calvin Morrison wrote:
>> Surely the user knows what shell they are using? Sure it's a valid
>> point, but almost irrelevant at the same time. Who cares about their
>> shell behavior? If they think it's an issue, then they need not run
>> any commands. I assume people are intelligent, and want to let them
>> use their shells additional features, rather than retard them with
>> safety.
>
> Well, I think the fact that you have to append & after each command
> about sums up my feelings on the matter.
I suppose it's a question of whether you'll use shell features or not.
If not, you can go with how dwm does it, and pass
(char *[]){ "xterm", "-e", "mail", NULL } to execvp.
Regarding EXIT_SUCCESS, I think this is perhaps a bit picky, 0 is
perfectly fine and besides, every non-trivial shell script hard codes
stdout and stderr: 2>&1.
Rob
Received on Sun Feb 09 2014 - 12:03:13 CET
This archive was generated by hypermail 2.3.0
: Sun Feb 09 2014 - 12:12:09 CET