Skip to main content
added 68 characters in body
Source Link
SoonGuy
  • 131
  • 4

Trying to read a long input into a variable from ZSH on MacOS.

 echo "URL: " read URL 

input is always truncated to 1024 chars... if I try and type additional chars nothing happens.

  • I tried using the -n option to no avail (nothing gets read into the variable)

    Input is copy/pasted from PostMan, its an S3 signed upload URL

  • If I try and delete a few chars from the end (after pasting) I am only able to manually type as many chars as I deleted

  • I tried using the -n option to no avail (nothing gets read into the variable)

How can I read a long input? ~1500 chars

Trying to read a long input into a variable from ZSH on MacOS.

 echo "URL: " read URL 

input is always truncated to 1024 chars... if I try and type additional chars nothing happens.

  • I tried using the -n option to no avail (nothing gets read into the variable)

How can I read a long input? ~1500 chars

Trying to read a long input into a variable from ZSH on MacOS.

 echo "URL: " read URL 

input is always truncated to 1024 chars... if I try and type additional chars nothing happens.

  • Input is copy/pasted from PostMan, its an S3 signed upload URL

  • If I try and delete a few chars from the end (after pasting) I am only able to manually type as many chars as I deleted

  • I tried using the -n option to no avail (nothing gets read into the variable)

How can I read a long input? ~1500 chars

edited tags; edited tags
Link
Kusalananda
  • 356.1k
  • 42
  • 737
  • 1.1k
Source Link
SoonGuy
  • 131
  • 4

Unable to read more than 1024 chars on ZSH + MacOS

Trying to read a long input into a variable from ZSH on MacOS.

 echo "URL: " read URL 

input is always truncated to 1024 chars... if I try and type additional chars nothing happens.

  • I tried using the -n option to no avail (nothing gets read into the variable)

How can I read a long input? ~1500 chars