Re: How do I escape a question mark (?)
Re: How do I escape a question mark (?)
- Subject: Re: How do I escape a question mark (?)
- From: Reinhold Penner <email@hidden>
- Date: Sun, 4 Aug 2002 18:38:26 -1000
Matthew,
On Sunday, August 4, 2002, at 06:28 , Matthew Smith wrote:
on 05/08/2002 13:20, Reinhold Penner at email@hidden wrote:
I need help:
set x to "test.cgi\?"
will not compile (expected """ but found unknown token). What's up with
that? For use in a do shell script, I need to escape a URL that
contains
a .cgi? portion. Pasting the URL with the backslashed ? (\?) works just
fine in the Terminal, but I can't pass the URL to the shell, since AS
refuses to compile a string containing "\?". Is there another way of
escaping in either AS or the shell?
What about:
set x to "test.cgi?"
sure, that returns "test.cgi?", but have you actually read what I wrote?
I need to escape the "?" in order to pass it to the shell. A literal "?"
in a shell command will break the shell command.
-Reinhold
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.