bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: let's establish BASH_MINIMUM_TIME_BETWEEN_INTERACTIVE_COMMAND


From: Pierre Gaston
Subject: Re: let's establish BASH_MINIMUM_TIME_BETWEEN_INTERACTIVE_COMMAND
Date: Thu, 30 Jan 2014 13:00:27 +0200

On Thu, Jan 30, 2014 at 12:56 PM, Dan Jacobson <address@hidden> wrote:

> >>>>> "PG" == Pierre Gaston <address@hidden> writes:
> PG> Maybe try something like: PROMPT_COMMAND='read -t0 && sleep 10'
>
> But how will that on its own stop me from dumping tons of lines of junk
> into bash via one accidental mouse click?
>

Well if the sleep trick works, I would hope that read -t0 would be true if
there is still something in the buffer of the terminal and call  sleep.
Of course I don't know how all this works precisely so maybe you need > 4k
of data hence the "maybe"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]