i tried to read other similar posts but i couldn't find any solution. I'm using a Mac with Iterm and as my title my bash doesn't write the history.
here my tests:
echo $HISTFILE
/Users/myname/.bash_history
echo $HISTSIZE
100000
echo $HISTFILESIZE
100000
set -o | grep history
history on
ls -ltr .bash_history
-rw-r--r-- 1 myname staff 0 Jul 1 12:31 .bash_history
I tried to delete e create again the .bash_history file without resolve.
if i change from bash to zsh with the command chsh -s /bin/zsh it works, but i need to use /bin/bash
Please someone can help me?