chhotii: (Default)
[personal profile] chhotii
Using Cygwin under Windows. It's supposed to be a spiffy new version of Cygwin.

So, .bashrc is such a small and simple file, I figured it would be faster to use ed to edit it than to either install emacs or learn vi. Don't trust any of the Windoze tools to edit a file that is for the consumption of a Unix program, the line-endings wouldn't go over well.

After many hours of not understanding why things Just Weren't Working, opened a file (that I had edited with ed) in notepad.exe, just for kicks. Discovered that when I make a boo-boo and hit backspace, the text passed on to ed by the terminal contains my typo and the backspace character. Not that I would have found this out using 'cat .bashrc' in the terminal window, 'cause it displays as though the typo and backspace don't exist. Same thing when I get bits of text out of the file in error messages. Ironic, had to go to Windoze to find out what was really in the file.

Turns out, all that time I was wondering why I wasn't allowed access to /usr/local/cvs, what the computer was really trying to say was, you can't have access to /usr/local.{backspace}/crs{backspace}{backspace}vs because heh, silly, it doesn't exist.

AAAAAAAAAAAAAAAAAAAAAAAAaaaaaaaaaaaaaaaaaaaaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGGG!!!!!!!!!!!!!!!!

No, I still don't want to learn vi.

Date: 2004-07-22 03:09 pm (UTC)
From: (Anonymous)
yep, cygwin terminals have some odd quirks. the one that annoys me the most is
the way it handles ctrl-c (or not), which gets in the way of "emacs -nw", and forces
you to either type out "x save-buffers-kill-emacs" to quit, or alternatively,
EXPORT cygwin=tty will eliminate that, but leav you in raw mode upon exit from emacs.
Yuck. On the other hand, the cygwin port of Xfree86 works wonderfully, so i just use
Xterm windows, which emacs -nw works fine in.

On the whole, Cygwin Is Your Friend and is the only thing that makes dealing with
windows something i can deal with.

BTW, just as in the the unix world, "od -c" is what you want to use to see what is
*really* in that file. Notepad will decieve you as well, just in different ways.
Cygwin's "od" works just fine. Also, you *can* set up cygwin to use MS-DOS-style
line termination if you want, although i never do that.

-phil

Date: 2004-07-22 03:12 pm (UTC)
From: (Anonymous)
Yow. bloody LJ comment interface parser decided to interpret my
"less-than-sign ESC greater-than-sign" as a tag of some sort, and
deleted it. Oy.

Date: 2004-07-22 07:58 pm (UTC)
ceo: (Default)
From: [personal profile] ceo
That's because < and > are HTML tag delimiters, silly. Use &lt; and &gt; to get around that.

Profile

chhotii: (Default)
chhotii

July 2023

S M T W T F S
      1
2345678
9101112131415
16 171819202122
23 242526272829
3031     

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 27th, 2026 05:54 am
Powered by Dreamwidth Studios