Latest cygwin64 release as of posting on Windows 7x64
GNU bash, version 4.1.11(2)-release
Running in the cygwin terminal (C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico )
The several commands I use all recall correctly using the up-arrow key. That is, I type a command, it executes, I can recall it via up-arrow. Duplicate commands are collapsed to one command.
However, this command seems to disappear from the history:
Immediately after issuing the command, up-arrow brings back the command prior to the tac... command.
Further experimentation shows, for instance, that a simple
tac --help
command disappears also. Issuing a history command within the shell doesn't list it!
Excellent! I unset HISTIGNORE and use HISTCONTROL to remove duplicates. Also learned something about \t. What was in HISTIGNORE must have been the setup default perhaps, though not necessarily from cygwin, it might be from another bash shell setup.
Eric Blake-3 wrote
On 12/18/2013 04:42 PM, buggsy2 wrote:
> Good idea, right now it's:
>
> xyz:/cygdrive/d/>printenv HISTIGNORE
> &:[ \t]*:#*
This says:
ignore duplicate commands,
ignore any command starting with space, backslash, or t,
ignore any comment