From: Richard Addison-Wood <richard@wetafx.co.nz>
To: bug-gnu-emacs@gnu.org
Subject: bug#2148: In shell mode, comint-send-input seems to cut off at 254 characters
Date: Mon, 2 Feb 2009 16:20:06 +1300 (NZDT) [thread overview]
Message-ID: <20090202032006.39140958D3E@surfperch.wetafx.co.nz> (raw)
I attempted to do this command in shell mode:
echo _234567_10_234567_20_234567_30_234567_40_234567_50_234567_60_234567_70_234567_80_234567_90_23456_100_23456_110_23456_120_23456_130_23456_140_23456_150_23456_160_23456_170_23456_180_23456_190_23456_200_23456_210_23456_220_23456_230_23456_240_23456_250_23456_260
The immediate output was:
0_23456_260: Command not found.
but when I hit enter again without typing anything else, I got:
_234567_10_234567_20_234567_30_234567_40_234567_50_234567_60_234567_70_234567_80_234567_90_23456_100_23456_110_23456_120_23456_130_23456_140_23456_150_23456_160_23456_170_23456_180_23456_190_23456_200_23456_210_23456_220_23456_230_23456_240_23456_25
So the first 254 characters I typed got held back, and the additional 11 characters were sent to the inferior shell. Further, the held back characters were then sent when I pressed enter again.
So this is what the buffer looked like:
====================
>echo _234567_10_234567_20_234567_30_234567_40_234567_50_234567_60_234567_70_234567_80_234567_90_23456_100_23456_110_23456_120_23456_130_23456_140_23456_150_23456_160_23456_170_23456_180_23456_190_23456_200_23456_210_23456_220_23456_230_23456_240_23456_250_23456_260
echo _234567_10_234567_20_234567_30_234567_40_234567_50_234567_60_234567_70_234567_80_234567_90_23456_100_23456_110_23456_120_23456_130_23456_140_23456_150_23456_160_23456_170_23456_180_23456_190_23456_200_23456_210_23456_220_23456_230_23456_240_23456_250_23456_260
>0_23456_260: Command not found.
>
_234567_10_234567_20_234567_30_234567_40_234567_50_234567_60_234567_70_234567_80_234567_90_23456_100_23456_110_23456_120_23456_130_23456_140_23456_150_23456_160_23456_170_23456_180_23456_190_23456_200_23456_210_23456_220_23456_230_23456_240_23456_25
>
====================
I would count this as very unexpected and dangerous behaviour.
In GNU Emacs 22.3.1 (x86_64-unknown-linux-gnu)
of 2008-09-15 on lambretta
Windowing system distributor `The X.Org Foundation', version 11.0.70200000
configured using `configure '--prefix=/vol/apps_master/apps.Linux64/emacs-22.3_64''
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Major mode: Shell
Minor modes in effect:
shell-dirtrack-mode: t
tooltip-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
line-number-mode: t
Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> M-x
s h e l l <return> <down-mouse-2> <mouse-2> <return>
<return> M-x r e p o r t - e m a c s - b u g <retu
rn>
Recent messages:
("/vol/apps/emacs-22.3_64/bin/emacs" "--no-init")
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading shell...done
Mark set
Loading emacsbug...
Loading regexp-opt...done
Loading emacsbug...done
next prev reply other threads:[~2009-02-02 3:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-07 4:48 bug#2148: Re: In shell mode, comint-send-input seems to cut off at 254 characters Chong Yidong
2009-04-07 14:09 ` bug#2148: " Stefan Monnier
2009-04-07 14:22 ` Chong Yidong
2009-04-07 15:47 ` Stefan Monnier
2009-04-08 18:33 ` Richard M Stallman
2009-02-02 3:20 ` Richard Addison-Wood [this message]
2014-10-19 14:18 ` Dorish Apira
2014-10-22 1:11 ` Alexis
2016-01-10 22:34 ` bug#2148: " Alan J Third
2016-01-11 3:48 ` Richard Stallman
2016-01-13 20:50 ` Alan J Third
2016-01-13 21:11 ` Alan J Third
-- strict thread matches above, loose matches on Subject: below --
2009-02-06 16:18 bug#2148: " Chong Yidong
2009-02-09 1:15 ` Richard Addison-Wood
2009-02-10 0:11 ` Richard M Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090202032006.39140958D3E@surfperch.wetafx.co.nz \
--to=richard@wetafx.co.nz \
--cc=2148@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).