bug-bash
[Top][All Lists]
Advanced

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

funsub in PS2


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]



reply via email to

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