Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • hm, interesting, it works for me (Linux, middle-mouse copy and paste into read, as well as writing into an fd and reading that: < <(for i in {1..1500}; do printf "%d" $(( i % 10 )); done; printf "\n") read URL, then printf '%s' $URL | wc yields 1500). Commented Mar 14, 2024 at 14:06
  • 1
    Please edit your question to describe the way you're giving characters to the read URL command. Are you truly typing 1500 characters on your keyboard, or are you using a mouse to copy from one window (where the displayed text is wrapped) and paste into the window where your read command is running? Are there carriage return or Control-D characters in the URL you're typing? Commented Mar 14, 2024 at 15:50
  • updated with additional info per the comments Commented Mar 14, 2024 at 18:15
  • Related: Terminal does not accept pasted or typed lines of more than 1024 characters, and similarly on Linux Is there any limit on line length when pasting to a terminal in Linux? (4096 B) Commented Mar 14, 2024 at 20:10