Re: How to update environment variable output
On Wed, Jul 24, 2024 at 21:08:29 +1000, Keith Bainbridge wrote:
> So when I opened my xterm this morning, I saw:
> keith@lenv0
>
> Tue 23Jul2024@19:19:30 205.2024 AEST
> :~ $>
>
> You have new mail in /var/spool/mail/keith
>
>
> Pressed enter, and the day# updated:
>
> keith@lenv0
>
> Wed 24Jul2024@09:48:36 206.2024 AEST
> :~ $>
Please tell us *exactly* what "opened my xterm this morning" means.
Did you run a new instance of xterm? Did you un-minimize an existing
instance?
Are you using a persistent tmux or screen session?
Here are a few commands whose output might be helpful:
declare -p PS0 PS1 PROMPT_COMMAND
ps -fp $PPID
trap DEBUG
PS4='+ $BASH_SOURCE:$FUNCNAME:$LINENO:' bash -ixc : 2>&1 | grep YEAR
PS4='+ $BASH_SOURCE:$FUNCNAME:$LINENO:' bash -ilxc : 2>&1 | grep YEAR
Reply to: