gusl: (Default)
[personal profile] gusl
If I get a lesson from a Cygwin whiz, I may be able to avoid the cost of switching OSs...

My PATH variable often seems to be broken. The space inside "Program Files" causes parsing problems, but you can't tell how far it's parsed, except by painstakingly looking inside those directories and trying to run files in them.

On top of this, whenever you make a change to the default values of environment variables, you always need to start a new shell to see the change. I wish I could set these defaults in a configuration file.

My Emacs often forgets that my SHELLOPTS has "igncr" and thereafter sends "\r" to the shell with every CR, becoming useless and forcing me to kill it.

My R shell seems to run in a different environment altogether, and does not recognize the PATH that my bash shell does (both running inside the same Emacs window).

Should I blame Cygwin?

(no subject)

Date: 2010-01-31 02:46 am (UTC)
From: [identity profile] bhudson.livejournal.com
Many unix-land scripts screw up with spaces in filenames. The fix is easy (double-quote variables when you use them) but is easy to forget, and then things quickly get very mysterious.

I would be shocked to see the value of environment variables change in a running shell just because you changed the default somewhere.

(no subject)

Date: 2010-01-31 02:55 am (UTC)
From: [identity profile] gustavolacerda.livejournal.com
I'd like to be able to tell a shell to restart, rather than killing it and opening a new one... which btw also loses the text from before.

(no subject)

Date: 2010-01-31 08:37 pm (UTC)
From: [identity profile] gwillen.livejournal.com
Are you aware that on Windows "Program Files" can for most purposes equally well be spelled "PROGRA~1"?

(no subject)

Date: 2010-01-31 08:44 pm (UTC)
From: [identity profile] gustavolacerda.livejournal.com
I'll try that on the path! Thanks.

(no subject)

Date: 2010-02-01 12:43 am (UTC)

(no subject)

Date: 2010-02-02 01:11 am (UTC)
From: [identity profile] gustavolacerda.livejournal.com
you have no idea how much grief this tip is going to save me!

(no subject)

Date: 2010-02-02 01:27 am (UTC)
From: [identity profile] gwillen.livejournal.com
Happy to help! :-) In case you haven't inferred it, the general formula is: Any file/folder name which is not a legal 8.3 name (that is, up to 8 characters plus three character extension, and some character set restrictions that don't include spaces) has an alternative name of the form

[First 6 characters of the name, with illegal characters removed]~1

with the number incremented in case of collisions.

(no subject)

Date: 2010-02-02 01:28 am (UTC)
From: [identity profile] gwillen.livejournal.com
Amusing bonus note: Microsoft has a patent on this scheme.

February 2020

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags