Using M-x shell, I have encountered a problem with commandlines being truncated to 4095 characters.
Steps to reproduce:
perl -e 'print "0" x 5000 . "\n"'
- Select output for next command
echo <5000 zeros> > /tmp/emacs_5000
wc /tmp/emacs_5000 should return
1 1 5001 /tmp
4090 zeros are output into the shell.
Interpretation: only the first 4095 characters (4090 output + 'echo ') are passed to the shell process.
Is my interpretation correct?
Is the a way to fix it?