Verify Bash syntax in history file