cellio: (avatar)
[personal profile] cellio
At work I've been running an ancient and venerable version of cygwin (Unix shell for Windows machines), designated "B20". Once too often I got annoyed by not having a useful utility available, so I finally decided to upgrade. Not being stupid, I did not allow it to install over my current copy.

The new version (no obvious version number; current as of Friday) breaks for me in fundamental ways. I don't understand why. Yes, I have read TFM.

First off, it doesn't automatically source my .bashrc the way the old version does. Yes, HOME is set correctly (and the old version gets its). Peculiar, but an obvious workaround exists. Perhaps relatedly, it ignores the "start in [directory]" setting in the shortcut definition. (I want it to start in a directory that is not HOME but it won't.)

Second, by default it emits some text in dark green on my black background, bypassing the color settings I've given it. This problem goes away after I source my .bashrc manually. I guess it's doing something strange with the default prompt, which my .bashrc changes to show the current working directory. Wacky, but if it doesn't recur I can ignore that.

However, there are two real problems. First, even after processing my .bashrc, which includes all the usual definitions of environment variables like ANT_HOME and JAVA_HOME and PATH, it can't find ant. When I run ant via an explicit path, it can't find java. I fired up new and old cygwin shells side by side and applied printenv to all the relevant variables; the definitions match. (The new cygwin has added some stuff to PATH and casts everything as "/cygdrive/d/blah_blah_blah", but it doesn't seem to be missing anything.) This is fatal; it does me no good to have the latest Unix tools if I can't run ant or (apparently) java.

And second, noticed in passing, the new version is sloooooowwwww. I issued a printenv command (for one variable, not the entire environment) in the new shell, switched to the old shell, typed the same command, and switched back, and the old one completed several seconds before the new one did. I have no idea what's going on.

I thought cygwin pretty much worked out of the box, but it's not doing it for me. Frustrating, especially when the old version did. I wonder what's wrong.

(no subject)

Date: 2005-01-24 11:14 pm (UTC)
From: [identity profile] sue-n-julia.livejournal.com
Is it possible the two versions of cygwin are conflicting?

S

(no subject)

Date: 2005-01-26 03:02 am (UTC)
From: [identity profile] sue-n-julia.livejournal.com
Ah - there could be very small differences in the file coding and it is translating them. Is there any chance that you could create a new .bashric file using the old one as a template?

S

Expand Cut Tags

No cut tags