[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote pro
From: |
Michael Albinus |
Subject: |
bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process |
Date: |
Thu, 14 May 2020 17:49:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Philipp Stephani <p.stephani2@gmail.com> writes:
Hi Philipp & Noam,
>> >> - we don't return a string in case a signal has interrupted the process,
>>
>> Since we don't have a reliable way to detect signals, I think this is
>> the only viable option.
>
> I'd expect the vast majority of programs to avoid such exit codes,
> precisely because they would want to allow portable usage in shell
> scripts. So I expect that the current behavior in master provides the
> "correct" result in the majority of cases.
I understand (and sympathize) both positions. However, Tramp has
returned for decades no strings for process-file, so I don't expect any
code in the wild which expects this.
What about a user option, tramp-process-file-return-signal-string? If
non-nil, it returns a string when a signal is assumed for exit codes >
128. If nil (the default), the exit code is always returned as
natnum. This would also fit the principle of least surprise, because
Tramp hasn't returned strings since ever.
A better variable name would also be appreciated :-)
Best regards, Michael.
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, (continued)
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Philipp Stephani, 2020/05/06
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Michael Albinus, 2020/05/06
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Michael Albinus, 2020/05/07
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Philipp Stephani, 2020/05/09
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Noam Postavsky, 2020/05/13
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Michael Albinus, 2020/05/14
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Philipp Stephani, 2020/05/14
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Andreas Schwab, 2020/05/14
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Noam Postavsky, 2020/05/14
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Philipp Stephani, 2020/05/14
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process,
Michael Albinus <=
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Michael Albinus, 2020/05/16
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Dmitry Gutov, 2020/05/16
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Michael Albinus, 2020/05/16
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Dmitry Gutov, 2020/05/16
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Michael Albinus, 2020/05/17
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Philipp Stephani, 2020/05/23
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Michael Albinus, 2020/05/23
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Philipp Stephani, 2020/05/23
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Andreas Schwab, 2020/05/06
- bug#41099: 28.0.50; TRAMP process-file ignores exit status of remote process, Philipp Stephani, 2020/05/06