The Voidspace Techie Blog

Gravatar Best practice is to not even use the shell.

Mostly you do not need to use the shell, but instead just run a process.

Adding all that complexification just to call processes causes many bugs.

Just quoting your arguments isn't good enough... you need to escape them properly. Best just to avoid it all, and just skip the shell all together... as another benefit, your programs can run faster.


Gravatar Sure. A lot of functionality in some applications is actually provided in the form of shell scripts though.

I guess the advantage is that the shell scripts can also be used standalone.


Name:

Email:

URL:

Comment:  ? 

 

Commenting by HaloScan