Hacker News new | ask | show | jobs
by mnarayan01 4782 days ago
In bash you'd use HISTCONTROL=ignorespace
1 comments

According to the manpage, ignorespace doesn't treat multi-line commands very nicely.
You would have to disable the cmdhist option for that to matter:

  shopt -u cmdhist
Or I guess be working with a bash old enough to not support cmdhist.