I dunno, quotearg is a pretty big chunk of code taken from a GPLed project, and it does far more than what is needed to run 'system'. It might be better to write a new module that does just what you want. It might replace the sh-quote module.
P.S. Please note my email address is now <egg...@cs.ucla.edu>.