|
From: | Grisha Levit |
Subject: | funsub in PS2 |
Date: | Tue, 26 Mar 2024 09:49:36 -0400 |
Having funsubs in PS2 seems to cause input tokens that are split across lines to be partially replaced with the last token of the last funsub to be parsed while expanding the prompt string. $ PS2='${ : XXXX; }> ' $ printf '[%s]\n' ab\ > cd [XXcd]
[Prev in Thread] | Current Thread | [Next in Thread] |