Greg Stark <[EMAIL PROTECTED]> writes:

> [EMAIL PROTECTED] (Kai Gro�johann) writes:
> 
> > Note the strange `D'.  Both of the above were on a FreeBSD system.
> 
> Uh, is this repeatable? Report it as a *serious* bug to the FreeBSD team?

I have now tried it again on several machines, and during one of the
instances, the connection was a bit slow.  So it seems that the
following happens:

The screen shows this:

,-----
| sh> echo "`cat`"
| a
| b
| X
`-----

Here, X indicates the cursor position.  When I now type C-d, the
screen shows `^DX' (X again shows cursor position) in the last line.
Then, the `a' is printed, which overwrites the `^' but not the `D'
after it.

Apparently, this is just a redrawing bug of xterm.  Strange, but not
really serious.

Oh, well.

This still does not help with shell-quote-argument, I'm afraid.
Getting back to that subject, it seems to be real hard to improve
shell-quote-argument such that it does the right thing with newlines.
But rather than transforming "a\nb" into "a\\\nb", we could transform
it into "a\\ b" or "a\\ \nb" which would at least produce a space in
the output.  What do you think?

kai
-- 
A preposition is not a good thing to end a sentence with.

Reply via email to