Junctions are a murky corner of NTFS, I think they may only be properly
dealt with using low -level IO calls.
So the "ls" command doesn't process correctly. If a junction is made to
another volume, "ls" will fail
altogether (even for the current directory). if you change them to
directory symlinks you should get better behavior.
When Linux looks at the NTFS files it can follow junctions better than
symlinks, but "ls" has the same trouble:
greg@linux-gc09:/c/usr> ls -lF
>
> total 87
>
> drwxrwxrwx 1 root root 28672 Jul 22 15:28 bin/
>
> drwxrwxrwx 1 root root 8192 Oct 23 21:12 bin32/
>
> drwxrwxrwx 1 root root 4096 Jul 17 22:26 bin64/
>
> drwxrwxrwx 1 root root 0 Jan 8 2015 etc/
>
> -rwxrwxrwx 1 root root 1205 Jan 26 2015 gdldeps.txt*
>
> drwxrwxrwx 1 root root 0 Jan 8 2015 home/
>
> lrwxrwxrwx 1 root root 112 Apr 19 2015 lib32 -> /c/mingw/dll32-psxdw2/
>
> lrwxrwxrwx 1 root root 112 Apr 19 2015 lib64 -> /c/mingw/dll64-psxseh/
>
> drwxrwxrwx 1 root root 0 Jun 17 2014 local/
>
> lrwxrwxrwx 1 root root 136 Sep 8 11:09 local32d ->
>> /c/.NTFS-3G/D:/mingw/msys32/usr/local32
>
> lrwxrwxrwx 2 root root 76 Jan 26 2015 mingw32lib ->
>> /c/.NTFS-3G/E:/mingw/lib
>
> lrwxrwxrwx 1 root root 76 Jan 26 2015 mingwd ->
>> /c/.NTFS-3G/D:/mingw/bin
>
> lrwxrwxrwx 1 root root 76 Jan 26 2015 mingwe ->
>> /c/.NTFS-3G/E:/mingw/bin
>
> -rwxrwxrwx 1 root root 136 Jun 26 2014 mntstrt*
>
>
(lib32 and lib64 are junctions, the others are (native) directory symlinks)
>
>>
> greg@linux-gc09:/c/usr> cd lib32
>
> greg@linux-gc09:/c/usr/lib32> ls ../lib64
>
> ls: cannot access ../lib64: No such file or directory
>
> greg@linux-gc09:/c/usr/lib32> cd ..
>
> greg@linux-gc09:/c/usr> cd lib64
>
> greg@linux-gc09:/c/usr/lib64> ls
>
> cairo.dll libgmodule-2.0-0.dll libpango-1.0-0.dll
>> libpng16-16.dll libxml2-2.dll
>
>
>
On Tue, Nov 24, 2015 at 3:21 PM, Burkhardt, Glenn B UTAS <
[email protected]> wrote:
> Is there a known problem using Windows junction points in Msys2?
>
> I have some defined, and they're correctly noted as links by ls -F:
>
> Glenn.Burkhardt@AH462073 MSYS /c/views/dev3/itek
> $ ls -F
> ccs2@ common@ etc@ JavaProjects@ raptor@ tools@
>
> Glenn.Burkhardt@AH462073 MSYS /c/views/dev3/itek
> $ cd common
>
> Glenn.Burkhardt@AH462073 MSYS /c/views/dev3/itek/common
> $ ls ../ccs2
> ls: cannot access ../ccs2: No such file or directory
>
> But, I can "cd" using the same name:
>
> Glenn.Burkhardt@AH462073 MSYS /c/views/dev3/itek/common
> $ cd ../ccs2
>
> Glenn.Burkhardt@AH462073 MSYS /c/views/dev3/itek/ccs2
> $ ls
> build/ build.log Ccs_core/ CidCompiler/ Component/ cscope.files
> cscope.out Doc/ list Makefile os/ Standard/ tools/
>
>
>
>
> ------------------------------------------------------------------------------
> Go from Idea to Many App Stores Faster with Intel(R) XDK
> Give your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple
> OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
> _______________________________________________
> Msys2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/msys2-users
>
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users