I am running into a 1024 character limit for a bash command line in emacs shell mode. For example the command:

echo xxxxxxxxxxxxx...x  

with 1018 x's (for a total line length of 1023 chars) works fine, echoing the x's. However with 1019 or more x's (for a total line length of 1024 or more chars) it just starts generating ^G characters, one per character over 1023, and not returning (must ^C^C out of it). It does not matter if some of those 1023 characters are spaces, so it is not an issue of argument length.

This is of course not a problem running bash outside emacs.

Is there any way to change this emacs shell limit?

(version: Aquamacs 3.2 GNU Emacs

  • That's a terminal driver limit, not a bash limit, I think. – Gilles 'SO- stop being evil' Feb 17 '16 at 1:43
  • I can't reproduce this in Linux, so it must be something particular to shell-mode (or maybe comint?) in OSX. – Tyler Feb 18 '16 at 16:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.