computers suck, part 934,251,634,794,854
Jul. 22nd, 2004 04:24 pmUsing 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.
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.