minor error in skel/.bashrc

Andrey Repin anrdaemon@yandex.ru
Tue Mar 8 08:28:33 GMT 2022


Greetings, Adam Dinwoodie!

> On Sat, Mar 05, 2022 at 09:26:06AM +0300, lvm wrote:
>>  The identical /etc/skel/.bashrc and /etc/defaults/etc/skel/.bashrc contain
>> the same line
>> 
>> # export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups

Not a nitpick or anything, but I've found a slightly clearer technique on the internet:

export HISTCONTROL=${HISTCONTROL:+$HISTCONTROL:}ignoredups

>> 
>> But HISTCONTROL values should be colon separated, not comma separated. This
>> line is commented out, but if someone like me tries to use it without much
>> thinking...

> Confirmed.

> Achim, I've attached a patch that should fix this, based on the tip of
> https://sourceware.org/git/cygwin-apps/base-files.git


-- 
With best regards,
Andrey Repin
Tuesday, March 8, 2022 11:14:29

Sorry for my terrible english...



More information about the Cygwin mailing list