Public bug reported:

I am unable to copy and paste more than 4kB of script into a terminal
(e.g. gnome-terminal, xterm). I have been encountering this issue for
nearly a decade now (across multiple distributions, including Ubuntu
14.04 LTS). I believe it may relate to kernel parameter N_TTY_BUF_SIZE.
A similar problem appears to have been reported here;
http://comments.gmane.org/gmane.linux.kernel/1253720.

Use case;
1. The user has a large semi-automated script (e.g. 2000 line deployment 
instructions.txt; which do not justify full automation*).
2. The user wishes to copy and paste one or more automated sections of the 
script into a terminal (e.g. gnome-terminal, xterm, etc) while following the 
self-contained instructions.
3. Those automated sections of the script may contain more than 4kB worth of 
data (spread across multiple lines)

Actual behaviour;
- the script being pasted into the terminal is corrupted, then executed

Expected Behaviour;
- the script is successfully pasted into the terminal, then executed

I have reported this issue because it is not intuitive that the system
should behave like this. While now that I know it may be a fundamental
limitation of current (/prior) Linux kernels, I will ensure to work
around it in future activity. However, it is feasible that someone else
may encounter this issue before it is rectified. Every time this issue
occurs there is a possibility of system corruption (depending on the
precise script being copied to the terminal).

Perhaps a patch has already been released? Or if this issue should be
reported elsewhere, feel free to recommend an alternative forum.

* e.g. because the self-contained instructions only need to be executed
~10 times across the product life cycle, taking into account the fact
automation time is a function of a) how busy the user is / spare time
they can devote to subsystems, and b) the level of robustness required:
automatically editing files which may have been significantly updated
between deployments is not necessarily safe.

Cheers -

Richard

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Incomplete

** Attachment added: "A text file containing 4.1kB worth of script to be copied 
and pasted to terminal"
   https://bugs.launchpad.net/bugs/1488842/+attachment/4452624/+files/4.1kB.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1488842

Title:
  Can't copy and paste more than 4kB into a terminal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1488842/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to