git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: Bug Report with Git Bash

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Mar 27, 2023, 07:17 UTC
Message-ID
<36529771-b147-48ac-13df-51ed8462eaa1@gmx.de>
In-Reply-To
<002601d95a64$57312bd0$05938370$@gmail.com>
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, sang.tts.designer@gmail.com wrote:
Show 49 quoted lines
> 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:sang.tts.designer@gmail.com
>
> From: Martin Ågren <mailto:martin.agren@gmail.com>
> Sent: Sunday, March 19, 2023 7:28 PM
> To: mailto:sang.tts.designer@gmail.com
> Cc: mailto:git@vger.kernel.org
> Subject: Re: Bug Report with Git Bash
>
> Hi,
>
> On Sunday, 19 March 2023, <mailto:sang.tts.designer@gmail.com> 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
>
>
Previous: sang.tts.designer@gmail.comNext: sang.tts.designer@gmail.com
Message 3 of 4 in “Bug Report with Git Bash”
  1. sang.tts.designer@gmail.comMar 19, 2023
  2. sang.tts.designer@gmail.comMar 19, 2023
  3. Johannes SchindelinMar 27, 2023
  4. sang.tts.designer@gmail.comMar 28, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.