X-Spam-Check-By: sourceware.org
Message-ID: <BAY125-F185A737B001E591FAA542CB5F20@phx.gbl>
X-Sender: karlm30@hotmail.com
In-Reply-To: <eiqnin$e72$1@sea.gmane.org>
From: "Karl M" <karlm30@hotmail.com>
To: cygwin@cygwin.com
Subject: Re: Mount command warning with latest cygwin1.dll snapshot
Date: Tue, 07 Nov 2006 15:25:57 -0800
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Hi All...

>From: Matthew Woehlke
>Subject: Re: Mount command warning with latest cygwin1.dll snapshot
>Date: Tue, 07 Nov 2006 13:42:14 -0600
>
>Karl M wrote:
>>I just tried out the latest snapshot and my bat file to clean up my mounts 
>>now gives warning messages. The current released version of cygwin1.dll 
>>does not produce the warnings.
>>
>>Z:\>C:\Cygwin\bin\mount -f -s -b C:/Cygwin /
>>cygwin warning:
>>  MS-DOS style path detected: Z:\
>>  Preferred POSIX equivalent is: /z
>>  CYGWIN environment variable option "nodosfilewarning" turns off this 
>>warning.
>>  Consult the user's guide for more details about POSIX paths:
>>    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
>
>This looks like something is going wrong when running Cygwin programs 
>('mount', at least) from a DOS prompt. Does this produce any output?
>
>Z:\> C:\Cygwin\bin\env | C:\Cygwin\bin\grep Z:

Yes. It shows my HOMEDRIVE environment variable.
>
>What happens if you run the file from a different directory? Does the 
>warning always reflect the current directory?
>
Try a smaller and simple test. Type "mount -m" and look at the output.

$ mount -m
mount -f -s -b "C:/Cygwin/bin" "/usr/bin"
mount -f -s -b "C:/Cygwin/lib" "/usr/lib"
mount -f -s -b "C:/Cygwin" "/"
mount -s -t --change-cygdrive-prefix "/"

The above is my output from "mount -m".  Now type the mount command for the 
Cygwin root, in my case

mount -f -s -b "C:/Cygwin" "/"

and see what you get. I get

$ mount -f -s -b "C:/Cygwin" "/"
cygwin warning:
  MS-DOS style path detected: C:\Cygwin
  Preferred POSIX equivalent is: /
  CYGWIN environment variable option "nodosfilewarning" turns off this 
warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

Reverting to the released cygwin1.dll eliminates the warning.

Thanks,

...Karl

_________________________________________________________________
Stay in touch with old friends and meet new ones with Windows Live Spaces 
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us


--
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/

