Re:The shockingly obsolete code of bash
by andrewchambers on Tuesday September 30, 2014 @12:27AM
(#8386761)
Exactly, well designed cli programs are themselves already a self contained object. The global variables are more like members to this instance of the program.
Snprintf, implemented as a library function, is also a lot (like 1000x) slower than strcpy; however, I don't condone use of strcpy.