When I enter text on stdin in an OS X Terminal, a single line is limited to 1024 characters. For example,
cat > /dev/null beeps after I type (or paste) a line longer than this, and refuses to accept more characters. A problematic example is when I want to count characters from pasted text with
cat | wc -c: the
cat blocks at the first long line.
This seems to be a general problem with pasting to stdin. Can this observed stdin limitation of 1024 characters per line be removed or pushed to a higher limit?
I need this because I want to paste text that has lines longer than 1024 characters.
I could also use a "heredoc"
<< EOT and paste my long lines without any problem, but then the text appears in my shell history, which I don't want.