Subject: bug#49822: master e32c7d2: Change Python eval to send directly instead of using temporary files

From: Michael Albinus <[email-masked]>
Date: Mon, 06 Sep 2021 09:43:39 +0200

Augusto Stoffel <[email-masked]> writes:

> Okay, so is the TTY line length limit of the OS available in Lisp
> somewhere?  Otherwise, can we at least trust that 1024 is the universal
> lower bound?

On systems with a POSIX shell:

--8<---------------cut here---------------start------------->8---
(let ((default-directory "/"))
  (read (shell-command-to-string "getconf LINE_MAX")))
--8<---------------cut here---------------end--------------->8---

Note, that this can differ when you connect to remote hosts. That's why
I have bound default-directory to a local file name in the example.

Best regards, Michael.