perhaps it is in antisipation of //machine/share/ in ms/linux :)

On Tue, Aug 29, 2000 at 12:16:39AM +1100, Marty Richards wrote:
> Typing "cd //" takes me to a directory apparently called "//". pwd then
> shows me to be in "//".
> 
> This seems to happen on Slackware 7.0, Suse 6.4 and at least one version of
> Debian so far.
> 
> So this is a POSIX thing? maybe. How come its not all distro's then? Or is
> it a recent kernel thing (2.2.14 on mine).
> 
> Cheers,
> Marty
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Herbert Xu
> Sent: Monday, August 28, 2000 10:09 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [SLUG] // ??
> 
> 
> >>  I accidently typed cd // on one of my slackware 7.0 boxes.
> 
> >>  Surprisingly it happily took me to //, which seems to be an alias for
> the /
> >>  directory.
> 
> Two leading slashes leads to implementation-defined behaviour, per POSIX.
> That's why bash leaves them alone.  Three or more leading slashes are
> equivalent to a single one.
> 
> So don't use two leading slashes in your scripts if you want to be portable,
> but you can use two slashes (as another way of writing a single slash) when
> they're in the middle or at the end.
> --
> Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
> Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
> 
> 
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug
> 
> 
> 
> --
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://slug.org.au/lists/listinfo/slug

-- 
enterfornone - insert clever comment here
http://www.enterfornone.com/


--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to