Re: ksh: PROMPT_COMMAND

2022-08-03 Thread Damien Miller
On Thu, 4 Aug 2022, Christian Weisgerber wrote: > Damien Miller: > > > bash has a PROMPT_COMMAND that allows a command to be executed before > > each PS1 prompt is displayed. I've found this useful on occasion, so > > this is the same thing for ksh(1). > > PS1 is evaluated each time the prompt

Re: ksh: PROMPT_COMMAND

2022-08-03 Thread Christian Weisgerber
Damien Miller: > bash has a PROMPT_COMMAND that allows a command to be executed before > each PS1 prompt is displayed. I've found this useful on occasion, so > this is the same thing for ksh(1). PS1 is evaluated each time the prompt is displayed. You can put a command in $() in there.

ksh: PROMPT_COMMAND

2022-08-02 Thread Damien Miller
Hi, bash has a PROMPT_COMMAND that allows a command to be executed before each PS1 prompt is displayed. I've found this useful on occasion, so this is the same thing for ksh(1). In particular, this allows PROMPT_COMMAND to be set to a user-defined shell function that can modify PS1, though it