Re: SOLVED: Problem with /usr/X11R6/bin/xterm
Re: SOLVED: Problem with /usr/X11R6/bin/xterm
- Subject: Re: SOLVED: Problem with /usr/X11R6/bin/xterm
- From: Ambrose LI <email@hidden>
- Date: Tue, 7 Dec 2010 16:26:28 -0500
2010/12/7 Cook, Rich <email@hidden>:
> I guess that kind of is a bug, you are right. No I have not thought to do
> that -- not sure where to post bash bugs. :-) I know, Google it. LOL
> I'm glad it's fixed now, and I'll see if they agree it's a bug. It's
> interesting that they have a special syntax in the prompt string to tell the
> shell "these are non printing characters," as if the shell is not able to
> divine that. Perhaps that's the best solution.
> I mentioned tcsh once just to say it wasn't any better there. Come to think
> of it, that's weird. Oh, well, I am glad it's fixed as I say.
Indeed, the shell is not able to divine that, since you never know how
your particular terminal responds to control characters. Not all
terminals are ANSI, not all ANSI terminals use the same control
sequences. And may not always be able to supply a 100% correct $TERM,
or the corresponding terminfo might not 100% describe all possible
control sequences (and frequently they do not). So even if the shell
were to parse the prompt for possible control characters it still
could miss some, so what bash does here is "trust the user, who should
know best".
--
cheers,
-ambrose
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden