Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

thorny script argument escaping problem



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-





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org