• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Receiving character '\r' in argv[] in a Foundation tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Receiving character '\r' in argv[] in a Foundation tool


  • Subject: Re: Receiving character '\r' in argv[] in a Foundation tool
  • From: Bryan Blackburn <email@hidden>
  • Date: Sun, 2 Feb 2003 00:50:02 -0700
  • Mail-followup-to: Cocoa Developers <email@hidden>

Simplest way would be to take advantage of the shell's autocomplete
feature; typing "Icon<TAB>" should put the right character there. If
you're doing this in a shell script, in vi you can type "Icon^V^M"
to get the control character. Other editors may also use the Ctrl-V
method.

Bryan


On Feb 1, 2003 22:16, Pierre-Olivier Latour stated:
> > 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.
>
> Both do not work :(
>
> Actually, I just noticed that these files could not be passed to any
> terminal command e.g. "more Icon\\r" gives: "no such file or directory"
>
> Any other idea?
>
>
> _____________________________________________________________
>
> Pierre-Olivier Latour email@hidden
> Palo Alto, USA http://www.pol-online.net
_______________________________________________
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.

References: 
 >Re: Receiving character '\r' in argv[] in a Foundation tool (From: June Van Dyke <email@hidden>)
 >Re: Receiving character '\r' in argv[] in a Foundation tool (From: Pierre-Olivier Latour <email@hidden>)

  • Prev by Date: Re: Receiving character '\r' in argv[] in a Foundation tool
  • Next by Date: [Newbie] Finding the right information
  • Previous by thread: Re: Receiving character '\r' in argv[] in a Foundation tool
  • Next by thread: Controlling volume similar to keys on keyboard
  • Index(es):
    • Date
    • Thread