>>>I give MyScript the argument 'This text' , i.e.:
>>> MyScript 'This text'
>>>because I need $1 to expand to 'This text' but I also need the single
>>>quotes included, but when I:
>>> echo '$1'
>>>in the script I just get:
>>> '$1'
>>>instead of
>>> 'This text'
>>>Anyone know how to make this work?
>>Use echo "$1" in your script and run your sript this way:
>>MyScript "'This text'"
>Thanks....is there a way to get around the double quotes?
I believe this would work:
MyScript '\'This text\''
I personally don't think this is better, but YMMV.
Chuck Demas
--
Eat Healthy | _ _ | Nothing would be done at all,
Die Anyway | v | That no one could find fault with it.