Re: Receiving character '\r' in argv[] in a Foundation tool
Re: Receiving character '\r' in argv[] in a Foundation tool
- Subject: Re: Receiving character '\r' in argv[] in a Foundation tool
- From: June Van Dyke <email@hidden>
- Date: Sat, 01 Feb 2003 21:15:54 -0500
On 2/1/03 8:28 PM, "Pierre-Olivier Latour" <email@hidden> wrote:
>
Its real name is "Icon\r".
>
When I pass this name as an argument, I actually receive: "Iconr"
Did you try:
program Icon\\r
The \\ gets escaped to just \, which makes \r. Or you could do:
program "icon\r"
Quotes will remove the issue of the shell escaping any characters.
--
-- sinclair44
[self becomeWorldDictator];
- (void)becomeWorldDictator
{
[[world currentLeaders] assassinate];
[[world citizens] terrorize];
[world setCurrentLeaders:[NSArray arrayWithObject:self]];
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.