thorny script argument escaping problem
Robert La Ferla
robertlaferla at comcast.net
Wed Jun 21 07:09:45 EDT 2006
Thanks for the replies. I thought of a solution shortly after
sending out my e-mail. Merely describing a problem to others tends
to lead to solutions... I haven't tried it yet but I think I just
need to re-escape strings that have whitespace in them. Not the
whitespace itself but the entire string. When the shell is passed a
quoted string, the receiving script should see that string as a
single argument. My code that built up the new command line was not
re-quoting it. As for getopts, I am familiar with it and am using a
similar package in Java thus I don't want to recreate that in the
wrapper script.
More information about the Discuss
mailing list