Subject: RE: Bug Report with Git Bash

From: <[email-masked]>
Date: Tue, 28 Mar 2023 20:16:24 +0700

Dear Johannes,
Thanks a lot for your information.

--
Thanks and Best Regards!
---------------------------------------------------
Sang Truong Tan 

Department of Electronics
HCMC University of Technology
Phone: (+84) 977 600 563 or (+84) 908 983 574
Email: [email-masked]

-----Original Message-----
From: Johannes Schindelin <[email-masked]> 
Sent: Monday, March 27, 2023 2:17 PM
To: [email-masked]
Cc: [email-masked]; [email-masked]
Subject: RE: Bug Report with Git Bash

Hi,

FWIW the reason why you see it in your Ubuntu setup is most likely rooted in the `/etc/skel/.bashrc` file that contains this:

	# don't put duplicate lines or lines starting with space in the history.
	# See bash(1) for more options
	HISTCONTROL=ignoreboth

Ciao,
Johannes

On Sun, 19 Mar 2023, [email-masked] wrote:

> Dear Martin,
> What a very quick response!
> I just tried your recommendation, and it works.
> There is no word that can explain my appreciation, to be honest!
> Thanks a million.
>
> --
> Thanks and Best Regards!
> ---------------------------------------------------
> Sang Truong Tan
>
> Department of Electronics
> HCMC University of Technology
> Phone: (+84) 977 600 563 or (+84) 908 983 574
> Email: mailto:[email-masked]
>
> From: Martin Ågren <mailto:[email-masked]>
> Sent: Sunday, March 19, 2023 7:28 PM
> To: mailto:[email-masked]
> Cc: mailto:[email-masked]
> Subject: Re: Bug Report with Git Bash
>
> Hi,
>
> On Sunday, 19 March 2023, <mailto:[email-masked]> wrote:
> This is a relatively simple bug. when we double-type a command, like 'ls'.
> However, in the Ubuntu environment, the command only occurs once when 
> we press the top arrow to use the prior command.
> It is identical when using git bash.
> Repeat these steps:
> Type "ls: in git bash.
> 2. Type "ls" once more.
> 3. To return to the previous command, use the top arrow.
> As you can see, the number of times we type the can command 'ls' does 
> not matter; it only needs to occur once.
>
> This depends on how your shell is configured.
>
> Look into HISTCONTROL and ignoredups.
>
> You might want something like
>
>   export HISTCONTROL=ignoredups
>
> in ~/.bashrc.
>
> Martin
>
>