delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/14/08:13:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Mime-Version: 1.0 (Apple Message framework v619.2)
In-Reply-To: <20050414113310.GB5908@cygbert.vinschen.de>
References: <3d0b16f3b50f2acdb38a5479b9813ce4 AT dcs DOT warwick DOT ac DOT uk> <6 DOT 2 DOT 1 DOT 2 DOT 0 DOT 20050413180131 DOT 03cf4bf8 AT pop DOT prospeed DOT net> <6c620aa8a3e08df24c9dd17cf8f27c83 AT dcs DOT warwick DOT ac DOT uk> <20050414113310 DOT GB5908 AT cygbert DOT vinschen DOT de>
Message-Id: <1cb21b9e74665e440d1d82dcd6f51ff4@dcs.warwick.ac.uk>
From: Ashley Ward <ashley AT dcs DOT warwick DOT ac DOT uk>
Subject: Re: cygwin on Mac: files in Virtual PC "shared folder"
Date: Thu, 14 Apr 2005 13:11:08 +0100
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes

On 14 Apr 2005, at 12:33 pm, Corinna Vinschen wrote:
> On Apr 14 10:54, Ashley Ward wrote:
>> 2) The '\' character used in Windows share names is an escape 
>> character
>> to bash -- so the example "mount \\pollux\home\joe\data /data" in the
>> cygwin manual (example 3.10) is misleading.  For me, that style of
>> example gives error messages about "/data", not the Windows share
>> (actually the cause of the problem), which doesn't help.  I do see the
>> mentions in manual around that point about using the Windows command
>> shell (presumably with the cygwin bin in the PATH?) and also about
>> using '/' rather than '\', but it doesn't seem very clear to me --
>> perhaps the example could be changed to "mount 
>> '\\pollux\home\joe\data'
>> /data"?
>
> Erm... *cough, cough*, you're not a slave of the user manual, right?
> Why not just try it?  Using forward slashes or \\ in bash seems quite
> natural to me.

Hmmm -- thanks for your response, Corinna -- but I am a little confused 
by it.  I did actually try it, as I described in my next paragraph:

> 3) I did manage to mount the share by enclosing the share name in 
> single quotes as above, but then access to the mount point with ls, cd 
> etc failed with "invalid request code" - sigh.  Finally I gave up on 
> cygwin "mount" and instead mounted the share as F: using right-click 
> and "map drive" in Windows.  It was then accessible to cygwin under 
> /cygdrive/f.

Perhaps I'm not being clear enough.  I'm suggesting changing example 
3.10 in the manual from
   mount \\pollux\home\joe\data /data
to
   mount '\\pollux\home\joe\data' /data
as the existing example, although natural, doesn't work in bash as '\' 
outside quotes is interpreted as an escape.  The manual as it stands 
does hint at this, but not very directly.

However, adding the quotes may not be the right change to make, since 
although adding the quotes allowed the mount command to complete, for 
me it still didn't mount the files such that I could actually access 
them.

Ashley.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019