• 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: avoid space in path names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: avoid space in path names


  • Subject: Re: avoid space in path names
  • From: "Justin C. Walker" <email@hidden>
  • Date: Wed, 14 Dec 2005 16:37:08 -0800


On Dec 14, 2005, at 16:11 , Eric Albert wrote:

On Dec 14, 2005, at 4:00 PM, Justin C. Walker wrote:

On Dec 14, 2005, at 15:54 , Graham J Lee wrote:

On 14/12/05 22:45, Justin C. Walker wrote:
On Dec 14, 2005, at 14:33 , Steve Checkoway wrote:
[snip]
A filesystem such as HFS+ is case-preserving, so if you called it x.C it's called x.C so gcc will assume it's a C++ file. You could also open it as x.c or X.C or X.c but that isn't what it's called, AFAIK. e.g.:

I don't think the app can tell, really. It will depend on what it looks for first.

I'm pretty sure realpath(3) will return the correct case, so apps can differentiate between x.c and x.C that way.

Maybe, but I get this:


$ cat foo.c #include <sys/param.h> #include <stdlib.h> #include <stdio.h>

main()
{       char *path="/tmp/libc-391.2.3/stdlib/FreeBSD/foo.c";
        char realname[PATH_MAX];
        printf("%s\n", realpath(path, realname));
}
$ ./foo
/private/tmp/Libc-391.2.3/stdlib/FreeBSD/foo.c
$ mv foo.c foo.C
$ ./foo
/private/tmp/Libc-391.2.3/stdlib/FreeBSD/foo.C

I think that, even if the app uses realpath(3), it will find what it's looking for (not what's there).

Regards,

Justin

--
Justin C. Walker, Curmudgeon-at-Large
() The ASCII Ribbon Campaign
/\ Help Cure HTML Email



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: avoid space in path names
      • From: Alastair Houghton <email@hidden>
References: 
 >avoid space in path names (From: Stefan Werner <email@hidden>)
 >Re: avoid space in path names (From: David Fang <email@hidden>)
 >Re: avoid space in path names (From: "Sean McBride" <email@hidden>)
 >Re: avoid space in path names (From: Steve Checkoway <email@hidden>)
 >Re: avoid space in path names (From: "Justin C. Walker" <email@hidden>)
 >Re: avoid space in path names (From: Graham J Lee <email@hidden>)
 >Re: avoid space in path names (From: "Justin C. Walker" <email@hidden>)
 >Re: avoid space in path names (From: Eric Albert <email@hidden>)

  • Prev by Date: Re: avoid space in path names
  • Next by Date: Re: avoid space in path names
  • Previous by thread: Re: avoid space in path names
  • Next by thread: Re: avoid space in path names
  • Index(es):
    • Date
    • Thread