[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] shell-command and whitespace
From: |
Juri Linkov |
Subject: |
Re: [PATCH] shell-command and whitespace |
Date: |
Wed, 18 Feb 2015 19:04:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu) |
>>>> How about this patch, which makes shell-command strip whitespace by
>>>> default when called interactively?
>>>
>>> How about you keep the behaviour as is and have double prefix strip the
>>> whitespace instead?
>>
>> Most of the time, I want to strip whitespace, and whitespace stripping
>> is how $() works in the shell.
>
> That may well be, but I mostly don't want this command to strip
> whitespace as has been the default for many years. So instead of
> redefining what it does I again suggest you add that functionality.
> From a usability point of view double prefix is almost as good as a
> single prefix and you're free to provide customization to reverse the
> meaning of the two. But please keep the default what it was.
I noticed that most of the time, the final newline needs to be
removed when output is a single line, but needs to be preserved
when output is multi-line.