view all posts by Greg Lehey

Cygwin revisited

Greg Lehey Posted by Greg Lehey | Thu, 18 Sep 2014
see the original posting from Greg's diary

It's been decades since I first tried Cygwin. At the time I wasn't very impressed, and when I had to try it again I was no more impressed. But Edwin Groothuis suggested that it might be a way to find my modified files for the DxO Optics Pro problem, so I installed it again.

My view hasn't changed. In particular, it still bends the directory hierarchies to suit a Unix-like view of the world. But there's a way to access the bare Microsoft drives. To quote Edwin:

<MavvieRVBD> But you can still access the various disk via c: d: etc

But that doesn't work for me. Once I get past the fact that the shell windows swallow the mouse cursorwhy?all I got was:

grog@dxo ~
$ ls -l c:
ls: cannot access c:: No such file or directory

Further playing around shows very non-Microsoft-like parsing:

grog@dxo ~
$ ls -l c:\
> > ^C

grog@dxo ~
$ ls -l c:\\
total 6580023
drwxr-xr-x 1 grog None          0 Jan  9  2013 $Recycle.Bin
drwxr-xr-x 1 grog None          0 Nov  4  2013 11e1bb6e4e663bcb347d
drwxr-xr-x 1 grog None          0 May 14  2013 Adobe
...

And you can do a cd without this hoop-jumping:

grog@dxo ~
$ ls -l c:
ls: cannot access c:: No such file or directory

grog@dxo ~
$ cd c:

grog@dxo /cygdrive/c
$

So something has special knowledge about this kind of name. What a pain! Still, at least I now have find, which could help me.

ACM only downloads articles once. It's possible that this article has changed since being downloaded, but the only way you can find out is by looking at the original article.


see the original posting from Greg's diary

Back to top