oh-my-bash
oh-my-bash copied to clipboard
Changing date format to dd.mm.yyyy break history command.
After changing the date format o dd.mm.yyyy, I start getting the following error message when I try to execute history
bash: fc: -E: invalid option
Steps to reproduce.
1 - Change the date format in bashrc: to dd.mm.yyyy
HIST_STAMPS="dd.mm.yyyy"
2 - Uncomment the line below in $OSH/lib/history.sh
case $HIST_STAMPS in
#"mm/dd/yyyy") alias history='fc -fl 1' ;;
"dd.mm.yyyy") alias history='fc -El 1' ;;
#"yyyy-mm-dd") alias history='fc -il 1' ;;
*) alias history='fc -l 1' ;;
esac
3 - Run the history
command.