Score:0

bash handles comments sometimes as commands in regards to writing to history list, what can I do?

ws flag

I have now by updating got a new version of bash, instead of v590 now v5.2.15(1) (i681-pc-linux-gnu) in Kubuntu 20.04 and KNOPPIX 9.1.

But in this respect the behavior is the same.

Bash manpage says, that words beginning with a hash "#" and all remaining characters on the line are ignored.

But in contrast, bash comes into a condition that it writes out-commented lines into the history list as if they were commands.

I suffer since very many days from this mis-behavior. I cannot find the reason. And I have no means to prevent this.

Now this even occures, if in KDE under Konsole I open a new window with new terminal emulator xterm, new shell bash.

Please help.

Regards

Soren A avatar
mx flag
Could you please give some examples of the problem ?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.