Your message dated Thu, 20 Aug 2015 08:54:44 -0400
with message-id <50e1eb2a-4739-11e5-9b6a-00163eeb5...@msgid.mathom.us>
and subject line Re: Bug#796226: cat: truncates long lines when input is 
terminal
has caused the Debian Bug report #796226,
regarding cat: truncates long lines when input is terminal
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
796226: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=796226
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: coreutils
Version: 8.23-4
Severity: grave
Justification: causes non-serious data loss

Dear Maintainer,

The command 'cat > somefile' truncates input lines longer than 4096
characters.

To reproduce:

[[[
% yes | head -2049 | xargs | xclip -i      # copy 4098 bytes on a single line
% xclip -o | cat > foobar && wc -c foobar  # no problem when stdin is a pipe
4098 foobar
% cat > foobar && wc -c foobar
<paste><EOF>
4096 foobar
]]]

In the above, <paste> represents using the X11 "paste" action (such as
middle-click or shift+insert) and <EOF> represents pressing <Ctrl+D>.

I expected the full 4098 bytes to be pasted.

-- System Information:
Debian Release: 8.1
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing-updates'), (500, 
'stable-updates'), (250, 'testing'), (200, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages coreutils depends on:
ii  libacl1      2.2.52-2
ii  libattr1     1:2.4.47-2
ii  libc6        2.19-18
ii  libselinux1  2.3-2

coreutils recommends no packages.

coreutils suggests no packages.

-- debconf-show failed

--- End Message ---
--- Begin Message ---
On Thu, Aug 20, 2015 at 11:46:34AM +0000, Daniel Shahaf wrote:
Package: coreutils
Version: 8.23-4
Severity: grave
Justification: causes non-serious data loss

Dear Maintainer,

The command 'cat > somefile' truncates input lines longer than 4096
characters.

Nope, cat doesn't do it. There's a 4k kernel line length limit on terminal input.

You can put the terminal into raw mode with "stty -icanon" but then you won't be able to ctrl-d (that's part of the input processing).

Nobody has changed the 4k limit because in general it's a curiosity rather than a workflow impediment.

Mike Stone

--- End Message ---

Reply via email to