On Monday, March 4, 2002, at 08:41 AM, Heinz Nabielek wrote:

> # find /Users/heinz/ -name "kersten*"
> /Users/heinz//Pictures/kersten.pdf
>
> # find /Users/heinz/ -name "Kersten*"
> /Users/heinz//Documents/Kersten.jpg
>
> What is the meaning of the double slashes?
> (Perhaps more Darwin than fink specific?)

The '/' is the separator for path names in a unix path name, and by 
definition, multiple successive '/'s are not semantically meaningful (to 
the entity that actually parses the path name in the kernel).  Some user 
programs (like emacs) may, in some cases, assign additional semantics to 
the occurrence of multiple slashes, but there is no inherent 
(system-wide) meaning to them.

In your particular case, the 'find' command assumes that when you pass 
it a directory name, you won't terminate with a '/', so it adds one just 
to be sure.  Thus, when it prints a path name, it will do, roughly 
speaking,
    printf("%s%s\n", "/Users/heinz//", "Pictures/kersten.pdf");

Hope that helps.

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large  *
Institute for General Semantics        |   If you're not confused,
                                        |   You're not paying attention
*--------------------------------------*-------------------------------*


_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to