GNU bug report logs -
#35055
27.0.50; async-shell-command truncates output lines
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Sat, 30 Mar 2019 22:18:02 UTC
Severity: minor
Found in version 27.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #31 received at 35055 <at> debbugs.gnu.org (full text, mbox):
Juri Linkov <juri <at> linkov.net> writes:
Hi Juri,
> I didn't know that set-process-window-size changes the
> value of COLUMNS. I thought that COLUMNS is set only by
> comint-term-environment.
comint-term-environment doesn't set anything. It just returns env values
you could add to process-environmont, as in comint-exec-1 or compilation-start.
> One thing I still don't understand is
> how it would be possible to do the same for the remote process?
Well, don't know (yet), this needs more testing. At least, we could set
$COLUMNS directly:
(let ((default-directory "/ssh::")
(process-environment (cons "COLUMNS=1024" process-environment)))
(shell-command-to-string "ps aux"))
(let ((default-directory "/ssh::")
(process-environment (cons "COLUMNS=1024" process-environment)))
(shell-command-to-string "ps aux &"))
(let ((default-directory "/ssh::")
(process-environment (cons "COLUMNS=1024" process-environment)))
(shell))
Tramp could add the $COLUMNS setting by its own. Maybe, there exist a
more general solution, let's see.
If you add "COLUMNS=1024" to tramp-remote-process-environment, you would
get this effect already w/o any change in Tramp. Maybe I shall document
it somewhere in the Tramp manual.
Best regards, Michael.
This bug report was last modified 6 years and 96 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.