Re: tramp-hangs when command line exceeds 256 characters; MAX_CANON limit.

Stacey Marshall <[email protected]> Fri, 09 May 2025 14:52:45 +0100
Newsgroups gmane.emacs.tramp
Message-ID <[email protected]>
On 9 May 2025, at 12:28, Michael Albinus wrote:

Hi Michael,

>
> Thanks for your exhaustive analysis. Since I have no access to Solaris for testing, I trust what Tramp users contribute.

No problem.  I try to provide as much information as I can.

>> For a simple test then I modified tramp-sh-handle-make-process to
>> always apply it:
>
> Good catch. However, I would restrict this to disable buffering also for Solaris, see appended patch. It uses tramp-sunos-unames in order to check, whether the remote system runs Solaris. ATM, this constant covers "SunOS 5.10" and "SunOS 5.11" on the remote side, being the output of 'uname -sr'.

That's a good idea, to be honest I mostly connect with Solaris systems and had not tried my hack on any other systems.

> Does this match also your sequoia 15.4.1 system? Otherwise, tramp-sunos-unames must be extended.

The client host is Sequoia, so no extension required.

> Thanks, and pls check, whether my patch would be sufficient.

I have updated tramp-sh.el with the changes you've provided.  So far everything is working just great.

> Best regards, Michael.

Thanks for your speedy response,.  Best regards,

--
Stace