Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2022 13:47:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        standards@FreeBSD.org
Subject:   [Bug 46441] sh(1): Does not support PS1, PS2, PS4 parameter expansion
Message-ID:  <bug-46441-99-FgzL6djQcG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-46441-99@https.bugs.freebsd.org/bugzilla/>
References:  <bug-46441-99@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D46441

--- Comment #12 from Jilles Tjoelker <jilles@FreeBSD.org> ---
For PS4, I implemented this in 2011. The problem with unbounded recursion f=
rom
command substitutions is avoided by not allowing command substitutions; this
error (like other parse and expansion errors in PS4) is handled by writing =
an
error message and continuing with the unexpanded value.

For PS1 and PS2, there are two additional problems:
* how does $... expansion interact with the existing \u, \w, \$, etc.
* because PS2 is needed during the middle of a parse, more work may be need=
ed
to prevent the two parse operations from interfering with each other

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-46441-99-FgzL6djQcG>