|
From: | Jan Djärv |
Subject: | Re: [Emacs-diffs] /srv/bzr/emacs/trunk r100961: Enable ICANON (Bug#6771). Any long line problem must be solved differently. |
Date: | Fri, 06 Aug 2010 16:30:17 +0200 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 |
Stefan Monnier skrev 2010-08-06 15.03:
I agree with the commit that reverts my ICANON change. Yet:There is AFAIK no bug report or test case for the long line problem.AFAIK, the missing bug-report is the one that shows the ills of sending EOFs, while the bug-report for long-lines is bug#6149, which should be re-opened.As I said in relation to this, I could not reproduce the error in 6149.I could and still can: emacs -Q M-x shell echo SPC C-u 5000 a | wc RET and instead of getting wc's output I just get 4090 "a"s (the command appears to get cut at 4096 chars). The shell is `zsh', but last time I tried, the result was the same with bash.
It is definitly a shell thing. I tried with 100000 and bash: No problem.It could be the tty driver that does things differently, but I tested on OSX and Fedora 12.
It really doesn't matter if Emacs sets icanon or not for bash at least and probably most shells that use command line editing. Those shells will turn off icanon while reading input, and only turn it on when a command is executed.
Jan D. Jan D.
[Prev in Thread] | Current Thread | [Next in Thread] |