You're viewing a comment by thomas and its responses.

thomas Permalink
October 30, 2015, 22:31

How do I get history to display comments lines in my .bash_history? According to the bash man page, histchars third character is the character which indicates that the remainder of the line is a comment when found as the first character of a word, normally `#'. The history comment character causes history substitution to be skipped for the remaining words on the line. It does not necessarily cause the shell parser to treat the rest of the line as a comment.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "server_42": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.