bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Echoing commands in vi visual mode


From: Ondrej Oprala
Subject: Re: Echoing commands in vi visual mode
Date: Thu, 26 Jun 2014 13:56:06 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 06/11/2014 07:26 PM, Chet Ramey wrote:
On 6/11/14, 6:35 AM, Ondrej Oprala wrote:
Hi,
bash-4.3 seems to act differently(better) in vi visual mode, than previous
bash-4 minors.
However, ksh gave a different result all along.
This isn't standardized, so I'm not worried about small differences between
implementations in something that happens interactively.
True, it's an unimportant detail, though ksh-compliance seems to
always be desired.
Anyway, one of my colleagues wrote a small patch that brings
the behaviour very close to ksh. Could you please comment on it?


Bash uses the `v' option to echo commands as they are read from the temp
file and executed, and that option is inherited by subshells.  ksh93
doesn't seem to echo any commands at all.  I personally think the bash
behavior is more useful.

Chet
Thanks,
Ondrej

Attachment: noecho.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]