1
I am using Cygwin (CYGWIN_NT-6.3 2.0.4(0.287/5/3)) with a custom /etc/profile which I use to set the HOME to a personalized path, also, /etc/passwd sets that same path for the [only] user.
If I load bash.exe (with or without -l), input a few commands and exit, a .bash_history file is created/updated in the directory that Windows regards as the HOME folder for the user, not in the directory set with /etc/profile.
Tilde resolves to the path set on /etc/profile. It seems that only .bash_history is "misbehaving".
Which of Cygwin's configuration files should I change to force bash.exe to save .bash_history inside the directory set on /etc/profile as HOME?