20 Sep
2010
20 Sep
'10
9:19 p.m.
Joachim Breitner writes:
I just noticed this in my process list:
│ ├─xmonad-x86_64-l │ │ └─sh -c gnome-terminal │ │ └─gnome-terminal ... How about checking whether the argument x contains only alphanumerical characters and, if that is the case, executing the program directly?
I like that idea. I guess it would be as simple as splitting on whitespace and counting the number of arguments, as I doubt anyone's spawning anything with globs in the first word... I wonder if there's a way you could do the split at compile time, given that the arguments to spawn are almost always constants.