Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com content-class: urn:content-classes:message Subject: RE: paths like //usr/local MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Date: Tue, 15 Oct 2002 16:54:35 -0400 Message-ID: <7BFCE5F1EF28D64198522688F5449D5AD63A44@xchangeserver2.storigen.com> X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Scott Prive" To: "Jan Nieuwenhuizen" , Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id g9FKsna31003 FYI: I actually *had* hostnames like "var", "tmp" and so on at one time... :-) Cygwin maps UNIX/POSIX behavior on top of NT, but NT was designed to be compatible with DOS's *broken* conventions, so NT is half-broken. Any kind of parsing for mounts like you suggest would probably incur a performance hit, generate limitations, and cause breakage everywhere. The escaping can be annoying but it's livable IMO. I suggest not to use //, but to use the "proper" path convention -- and escape accordingly. This is more keystrokes and more to remember, but it seems bugfree and 100% consistent. I shudder at the thought of `rm -rf /path` going to an "interpreted" mount point. Example: Desired path: \\server\share Bash: \\\\server\\share Perl - going THROUGH bash, using system(): \\\\\\\\server\\\\share Slightly off topic, but standard Bash *does* support hostname completion. You have to configure it -- see standard BASH2 documentation online. I have no idea how well it works with Cygwin and with UNC pathing, but it works on UNIX with automount and ssh. If nothing, it could be extended by someone for UNC. -Scott > -----Original Message----- > From: Jan Nieuwenhuizen [mailto:janneke AT gnu DOT org] > Sent: Tuesday, October 15, 2002 4:01 PM > To: cygwin AT cygwin DOT com > Subject: Re: paths like //usr/local > > > Christopher Faylor writes: > > > cygwin allows the user to specify paths like: c:\foo\bar > and c:/foo/bar. > > Similarly, it allows //foo/bar and \\foo\bar . > > > If that doesn't satisfy you then you can go back to the > "Because we're mean" > > argument. > > I've been hurt by this too, and it makes me think. It would be even > more satisfactory if some configurable list of 'hosts' would map to > //localhost/. Hosts with names such as \\bin, \\etc, \\tmp, > \\usr or \\var come to mind. > > Now if such a thing could be implemented without some horrible kludge, > would that be nice? > > Jan. > > -- > Jan Nieuwenhuizen | GNU LilyPond - The > music typesetter > http://www.xs4all.nl/~jantien | http://www.lilypond.org > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/