Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!zephyr.ens.tek.com!orca.wv.tek.com!onion!jeff From: jeff@onion.pdx.com (Jeff Beadles) Newsgroups: comp.unix.questions Subject: Re: /-happy Message-ID: <1990Aug20.220626.13329@onion.pdx.com> Date: 20 Aug 90 22:06:26 GMT References: <3139@dftsrv.gsfc.nasa.gov> <1990Aug16.215045.21300@iwarp.intel.com> Sender: news@orca.wv.tek.com Organization: Little to none. Lines: 32 merlyn@iwarp.intel.com (Randal Schwartz) writes: |> |>The null pathname (look carefully between the consecutive "/"-s, and |>you'll see them there) is a valid synonym for the "current directory". |> |>So aaa////bbb is the same as aaa/././././bbb, except that you don't |>have to stat "." four additional times (it'd be fast, but it still |>takes time). |> |>Just another Unix hacker, |>-- |>/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\ |>| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III | |>| merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn | |>\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/ Not true. (At least in 4.2BSD, and I'm too lazy to check SysV 3.2... :-) Here's a small snippit of code from sys/ufs_nami.c ... if (*cp == '/') { while (*cp == '/') cp++; ... Thus, the multiple '/' 's are just ignored. -Jeff -- Jeff Beadles jeff@onion.pdx.com jeff@quark.wv.tek.com