Possible bug? POSIX paths

BGINFO for X <bginfo4x-rm/[email protected]> Fri, 8 Feb 2013 15:26:22 +0100
Newsgroups gmane.comp.gnu.mingw.msys
Message-ID <CALD041hd7MQqZ2Bce0hFi9aTbw-8NnmoR57TgTe2LbfuWjwexw@mail.gmail.com>
--===============6531365500726914013==
Content-Type: multipart/alternative; boundary=14dae9cdc3f3ff325604d53757d9

--14dae9cdc3f3ff325604d53757d9
Content-Type: text/plain; charset=ISO-8859-1

Hello,

 After reading some documentation about PATHS,
http://www.mingw.org/wiki/Posix_path_conversion

 I have some problems doing a trivial "ls" with windows paths (no spaces).

 I have done 5 tests:

 1) Windows path one folder - It works!

$ ls -la c:\windows

ls: c:windows/CSC:

total 23080

drwxr-xr-x 64 k Administradores 28672 Jan 18 19:48 .

drwxsr-xr-x 22 k Administradores 16384 Feb 6 16:38 ..

-rw-r--r-- 1 k Administradores 5242934 Nov 5 08:30 BGInfo.bmp

...



2) POSIX path one folder -> It works!

$ ls -la c:/windows

ls: c:/windows/CSC:

total 23080

drwxr-xr-x 64 k Administradores 28672 Jan 18 19:48 .

drwxr-xr-x 22 k Administradores 16384 Feb 6 16:38 ..

-rw-r--r-- 1 k Administradores 5242934 Nov 5 08:30 BGInfo.bmp

...


 3) POSIX path subfolder (ADAM) -> It works!

$ ls -la c:/windows/ADAM

total 3384

drwxr-xr-x 37 k Administradores 4096 Mar 20 2012 .

drwxr-xr-x 64 k Administradores 28672 Jan 18 19:48 ..

-rwxr-xr-x 2 k Administradores 253952 Nov 20 2010 ADSchemaAnalyzer.exe

...


 4) Windows path subfolder (ADAM) -> It doesn't works!

$ ls -la c:\windows\ADAM

ls: c:windowsADAM: No such file or directory


 5) Windows path subfolder (ADAM) QUOTED -> It works!

$ ls -la "c:\windows\ADAM"

total 3384

drwxr-xr-x 37 k Administradores 4096 Mar 20 2012 .

drwxr-xr-x 64 k Administradores 28672 Jan 18 19:48 ..

-rwxr-xr-x 2 k Administradores 253952 Nov 20 2010 ADSchemaAnalyzer.exe


 My question is: Why test 4 doesn't work?

 If there is only one folder, it works (test 1).

I don't understand why adding subfolders fails.

Is there any reason?

I'm doing something wrong?


 Why test 5 works?

I think that quoting here is not necessary.

But In fact I don't mind if works with quotes. My real question is test 4.


 Thanks a lot.

--14dae9cdc3f3ff325604d53757d9
Content-Type: text/html; charset=ISO-8859-1


<p style="margin-bottom:0cm" lang="en-US">Hello, 
</p>
<p style="margin-bottom:0cm" lang="en-US">
</p>
<p style="margin-bottom:0cm" lang="en-US">After reading some
documentation about PATHS,
<a href="http://www.mingw.org/wiki/Posix_path_conversion">http://www.mingw.org/wiki/Posix_path_conversion</a></p>
<p style="margin-bottom:0cm" lang="en-US">
</p>
<p style="margin-bottom:0cm" lang="en-US">I have some problems doing
a trivial &quot;ls&quot; with windows paths (no spaces). 
</p>
<p style="margin-bottom:0cm" lang="en-US">
</p>
<p style="margin-bottom:0cm" lang="en-US">I have done 5 tests: 
</p>
<p style="margin-bottom:0cm" lang="en-US">
</p>
<p style="margin-bottom:0cm" lang="en-US">1) Windows path one folder
- It works!</p>
<p style="margin-bottom:0cm" lang="en-US">$ ls -la c:\windows</p>
<p style="margin-bottom:0cm" lang="en-US">ls: c:windows/CSC: 
</p>
<p style="margin-bottom:0cm" lang="en-US">total 23080</p>
<p style="margin-bottom:0cm" lang="en-US">drwxr-xr-x    64  k
Administradores   28672 Jan 18 19:48 .</p>
<p style="margin-bottom:0cm" lang="en-US">drwxsr-xr-x    22  k
Administradores   16384 Feb  6 16:38 ..</p>
<p style="margin-bottom:0cm" lang="en-US">-rw-r--r--     1  k
Administradores 5242934 Nov  5 08:30 BGInfo.bmp</p>
<p style="margin-bottom:0cm" lang="en-US">... 
</p>
<p style="margin-bottom:0cm" lang="en-US"><br></p><p style="margin-bottom:0cm" lang="en-US">
<br></p>
<p style="margin-bottom:0cm" lang="en-US">2) POSIX path one folder
-&gt; It works!</p>
<p style="margin-bottom:0cm" lang="en-US">$ ls -la c:/windows</p>
<p style="margin-bottom:0cm" lang="en-US">ls: c:/windows/CSC: 
</p>
<p style="margin-bottom:0cm" lang="en-US">total 23080</p>
<p style="margin-bottom:0cm" lang="en-US">drwxr-xr-x    64  k
Administradores   28672 Jan 18 19:48 .</p>
<p style="margin-bottom:0cm" lang="en-US">drwxr-xr-x    22  k
Administradores   16384 Feb  6 16:38 ..</p>
<p style="margin-bottom:0cm" lang="en-US">-rw-r--r--     1  k
Administradores 5242934 Nov  5 08:30 BGInfo.bmp</p>
<p style="margin-bottom:0cm" lang="en-US">...</p>
<p style="margin-bottom:0cm" lang="en-US"><br>
</p>
<p style="margin-bottom:0cm" lang="en-US">3) POSIX path subfolder
(ADAM) -&gt;  It works!</p>
<p style="margin-bottom:0cm" lang="en-US">$ ls -la c:/windows/ADAM</p>
<p style="margin-bottom:0cm" lang="en-US">total 3384</p>
<p style="margin-bottom:0cm" lang="en-US">drwxr-xr-x 37  k
Administradores    4096 Mar 20  2012 .</p>
<p style="margin-bottom:0cm" lang="en-US">drwxr-xr-x 64  k
Administradores   28672 Jan 18 19:48 ..</p>
<p style="margin-bottom:0cm" lang="en-US">-rwxr-xr-x  2  k
Administradores  253952 Nov 20  2010 ADSchemaAnalyzer.exe</p>
<p style="margin-bottom:0cm" lang="en-US">...</p>
<p style="margin-bottom:0cm" lang="en-US"><br>
</p>
<p style="margin-bottom:0cm" lang="en-US">4) Windows path subfolder
(ADAM)  -&gt;  It doesn&#39;t works!</p>
<p style="margin-bottom:0cm" lang="en-US">$ ls -la c:\windows\ADAM</p>
<p style="margin-bottom:0cm" lang="en-US">ls: c:windowsADAM: No such
file or directory</p>
<p style="margin-bottom:0cm" lang="en-US"><br>
</p>
<p style="margin-bottom:0cm" lang="en-US">5) Windows path subfolder
(ADAM) QUOTED -&gt;  It works!</p>
<p style="margin-bottom:0cm" lang="en-US">$ ls -la &quot;c:\windows\ADAM&quot;</p>
<p style="margin-bottom:0cm" lang="en-US">total 3384</p>
<p style="margin-bottom:0cm" lang="en-US">drwxr-xr-x 37  k
Administradores    4096 Mar 20  2012 .</p>
<p style="margin-bottom:0cm" lang="en-US">drwxr-xr-x 64  k
Administradores   28672 Jan 18 19:48 ..</p>
<p style="margin-bottom:0cm" lang="en-US">-rwxr-xr-x  2  k
Administradores  253952 Nov 20  2010 ADSchemaAnalyzer.exe</p>
<p style="margin-bottom:0cm" lang="en-US"><br></p><p style="margin-bottom:0cm" lang="en-US">
</p>
<p style="margin-bottom:0cm" lang="en-US">My question is: Why test 4
doesn&#39;t work? 
</p>
<p style="margin-bottom:0cm" lang="en-US">
</p>
<p style="margin-bottom:0cm" lang="en-US">If there is only one
folder, it works (test 1). 
</p>
<p style="margin-bottom:0cm" lang="en-US">I don&#39;t understand why
adding subfolders fails. 
</p>
<p style="margin-bottom:0cm" lang="en-US">Is there any reason? 
</p>
<p style="margin-bottom:0cm" lang="en-US">I&#39;m doing something wrong?
</p>
<p style="margin-bottom:0cm" lang="en-US"><br>
</p>
<p style="margin-bottom:0cm" lang="en-US">Why test 5 works? 
</p>
<p style="margin-bottom:0cm" lang="en-US">I think that quoting here
is not necessary. 
</p>
<p style="margin-bottom:0cm" lang="en-US">But In fact I don&#39;t mind
if works with quotes. My real question is test 4. 
</p>
<p style="margin-bottom:0cm" lang="en-US"><br>
</p>
<p style="margin-bottom:0cm" lang="en-US">Thanks a lot. 
</p>
<p style="margin-bottom:0cm" lang="en-US"><br>
</p>
<p style="margin-bottom:0cm" lang="en-US"><br>
</p>
<br><br>

--14dae9cdc3f3ff325604d53757d9--


--===============6531365500726914013==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
--===============6531365500726914013==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mingw-msys mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-msys

--===============6531365500726914013==--