[11537] in Athena Bugs

home help back first fref pref prev next nref lref last post

decmips 7.6G: csh

daemon@ATHENA.MIT.EDU (gptesler@MIT.EDU)
Sun Dec 12 11:05:49 1993

From: gptesler@MIT.EDU
To: bugs@MIT.EDU
Date: Sun, 12 Dec 93 11:05:34 EST

System name:		w20-575-47
Type and version:	KN02ca 7.6G
Display type:		PMAG-DV 

What were you trying to do?
	I'm using csh with the line editing features from "set lineedit",
	and M-c (upcase_word) is behaving strangely when used on words
	already	having uppercase letters in them (such as those on which
	<M-c> has been done already).  No keybindings have been changed
	from the athena defaults.

What's wrong:
	Type
		echo AbcdEfghIjklMno<C-b><C-b><C-b><C-b><C-b><M-c><M-c>
	(where <C-b> is control b and <M-c> is meta c).
	The line now appears as
		echo ABCDEFGHIJKLMNO
	with the cursor on the K.
	Cursor motion keys such as <C-a>, <C-b>, <C-f> do nothing
	now, and editing keys like backspace, <C-k>, etc., do nothing.
	Characters that self-insert will appear if typed, and apparently
	are appended to the end of the line (after the "O").
	<C-p> and <C-n> do call up the previous or next line in
	the history list, but display them starting at whatever
	position the cursor is at
		echo ABCDEFGHIJ<next line or prev line>
	and internally prepend the entirety of the line with the
	upcased word to the next or previous line, so the command
	that will be executed if you press return is
		echo ABCDEFGHIJKLMNO<next line or prev line>
	<C-l> will appear to clear the screen and put up a new prompt,
	but "echo ABCDEFGHIJKLMNO" will be prepended to whatever you
	type.

	Now start a new line, and type
		echo AbCdEfG<C-b><C-b><C-b><C-b><M-c>
	The line is not redisplayed with the word in uppercase, though
	it should be.  However, pressing return now does in fact
	result in it echoing "ABCDEFG" instead of "AbCdEfG".


	This odd behavior happens whenever <M-c> is done in the last
	word of a line when that last word has already been upcased or
	in some	circumstances when parts of it are in uppercase.

home help back first fref pref prev next nref lref last post