thorny script argument escaping problem

dsr at tao.merseine.nu dsr at tao.merseine.nu
Tue Jun 20 23:30:18 EDT 2006


On Tue, Jun 20, 2006 at 10:51:15PM -0400, Robert La Ferla wrote:
> Needless to say, this doesn't work.  Furthermore, I cannot require  
> the user to double escape either. e.g.  mywrapper --description  
> "'This is a test'".  I also need this wrapper to work for other  
> programs which may have quite complicated options.  Therefore, it  
> should work generically.
> 
> Am I missing something obvious?  Suggestions?

Read up on getopts and equivalent packages (like Perl's
Getopts::Std and Getopts::Long). It will be easy to add many
options, but it won't be generic.

-dsr-




More information about the Discuss mailing list