bug-bash
[Top][All Lists]
Advanced

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

Re: A suggestion for the future version of Bash


From: Victor Porton
Subject: Re: A suggestion for the future version of Bash
Date: Sat, 30 Dec 2000 04:54:05 +0500

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 (address@hidden; http://porton.narod.ru)





reply via email to

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