-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Subject: Re: [SLUG] Strange thing with /

> This is, I presume, for historical compatibility.  Certain versions of 
> Unix, and early network file systems, used paths of the form
//hostname/path 
> to access `path' on server `hostname'. "

It also has the beneficial side effect of not causing shell scripts to fail
if an extra backslash gets put in by accident.

DIR="/usr/bin/"
CMD="echo"
${DIR}/${CMD} "Hello World"


 -Doug
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to