[geeks] Shell quoting question...

Dave Fischer dave at cca.org
Fri Jul 14 13:27:51 CDT 2006


velociraptor at gmail.com writes:

>sh /export/home/nmiller/script "profile

>I tried escaping the %, e.g. "profile\%20name", but that just resulted
>in a line in my cron log with my script's exit code for "bad
>argument".

>I suppose I could work around this by doing a transformation in the
>script to check the directory name, but today's my last day, and I
>still have a handful of other things to beat into submission before
>5:30pm.

The cheap workaround would be a one-line shell script with the
"profile%20name" argument in it.

------ David Fischer ------- dave at cca.org ------- http://www.cca.org ------
------------------------ Drink Your Ovaltine! -----------------------------



More information about the geeks mailing list