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: Dan Jacobson
Subject: Re: let's establish BASH_MINIMUM_TIME_BETWEEN_INTERACTIVE_COMMAND
Date: Thu, 30 Jan 2014 19:52:52 +0800

Ah ha! Thanks for the private tip 4 minutes ago. This works!:

saftey_seconds=5
PROMPT_COMMAND='if ((SECONDS==0)); then echo TOO FAST HOLMES, waiting '\
$saftey_seconds' seconds or hit ^C; sleep '$saftey_seconds'; else SECONDS=0; fi'

Hope somebody documents it somewhere as otherwise, well, "the shell is
just a gaping mouth..."



reply via email to

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