Messages in this thread |  | | | Date | Wed, 01 Mar 2000 21:57:06 +0100 | | From | Remi Turk <> | | Subject | Re: Linux's future: //posix/ipc, //root and so on ? |
| |
Mike Castle wrote: > > On Tue, 29 Feb 2000, Alan Cox wrote: > > > > AC> Millions of apps rely on // working. > > > > > > > > Are you sure ? Why ? Till there no warning we can not check it. > > > > > > Because everyone knows // is fine so everyone is really sloppy about > > > combining paths together. > > Not everyone. Just those doing it wrong. If you're going to be combining > paths together, you should be following the POSIX recommendation and > using ///, just because // at the beginning could be special.
Not sure, but:
$ cat foo.c #include <stdio.h> #include <limits.h> #include <stdlib.h>
int main () { char path [PATH_MAX]; realpath ("//usr", path); printf ("%s\n", path); return 0; } $ gcc foo.c $ ./a.out /usr (glibc 2.1.2 from RH6.1)
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
|  |