Gentlemen, I have once again come up with a million dollar idea for bash, revolutionizing the shell world.
As we all know, nobody in their right mind could type more than one command per second into bash when in interactive mode. So let's establish BASH_MINIMUM_TIME_BETWEEN_INTERACTIVE_COMMAND=1.0 Any faster than that means the user has once again by accident pasted wads and wads of some essay into bash! Bash should simply print error message(s) and _not add those lines to history_. Voila, the damage is limited to just the first line being interpreted, instead of feeding your (even root) shell all 1000 lines of random junk! Sure, the default could be BASH_MINIMUM_TIME_BETWEEN_INTERACTIVE_COMMAND=0 so it still could be available just for users that need it (badly like me.)