help-bash
[Top][All Lists]
Advanced

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

Re: how to exclude results from PS0\1 \ PROMPT_COMMAND


From: Aleksey Tsalolikhin
Subject: Re: how to exclude results from PS0\1 \ PROMPT_COMMAND
Date: Fri, 12 Mar 2021 05:45:33 -0800

Sorry, what are you trying to do?  Normally to change what one sees before
the prompt one would change PROMPT_COMMAND.

See
https://www.gnu.org/software/bash/manual/html_node/Controlling-the-Prompt.html



On Thu, Mar 11, 2021 at 11:17 AM Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
wrote:

> i tried, print $user_cmd in PS0 which is set by PROMPT_COMMAND
> user_cmd=$BASH_COMMAND but it runs twice, once for my interactive entered
> command, but also for the bash prompt command line
>
> how to exclude such ? must i grep -v the whole or something ?
>


-- 
Achieve real learning.  Email training@verticalsysadmin.com.


reply via email to

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