I wrote:
> > It would be good to have possibility to print something before each
> > interactive command line execution. This can be done by adding the new
> > shell
> > variable BEFORECOMMAND with commands which should be executed before every
> > user-entered command line.
Paul Jarc answered:
> If I understand you, this functionality is already available in the
> PROMPT_COMMAND variable and command substitution in PS1.
Chet Ramey:
>Do you mean before each line of a possible multi-line command? If not,
>I don't see why $PROMPT_COMMAND cannot be made to work for this.
No! PROMPT_COMMAND is executed right before printing PS1 but I mean to execute
BEFORECOMMAND right before of _executing_ of every user's command.
--
Victor Porton (porton@perm.raid.ru; http://porton.narod.ru)