Re: avoid space in path names
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