The following command:

parallel --max-line-length-allowed

returns 131049.

Is this a constant, or can I somehow change this limit?

  • 2
    So it looks like this is dynamically obtained, by running true xxxx...x (with x repeated a varying number of times in a binary search). The limit comes from outside parallel, from your shell, perhaps, or OS-level limits – muru Apr 10 '19 at 9:15
  • @StefanosKargas Can you say a little about why you need the limit lifted? What are you trying to do? – Ole Tange Apr 10 '19 at 19:08
  • I am using it to echo JSON messages coming from a server. And there are messages that reach over 1,5 MB each. The messages I cannot control. They belong to a 3rd party API – Stefanos Kargas Apr 11 '19 at 12:42
  • @StefanosKargas Try explaining that in a separate question. I believe --pipe may be able to fix that for you. – Ole Tange Apr 11 '19 at 22:44

It is caused by a limit in execve. I have not found any way to change it.

However, in CygWin/MSYS2 it seems this limit is lifted to 12MB.

  • I think this is a property that is set in the Linux kernel. I don't see how zsh can override this. – Alexander Apr 10 '19 at 9:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.