You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
– but if that is copied over to the &&/|| code, we end up with far too many braces. The braces should be reproduced only if they were in the original code, but I have no idea how the deparser can determine that. Any ideas appreciated.
The text was updated successfully, but these errors were encountered:
(note: this bug does not apply to the 1.0.* releases)
Background info: f21ace5
Reproducer:
Actual output:
Expected output: something like
The braces should be preserved in the generated
typeset -f
output as not having them changes the meaning of the code, andWRONG
is printed.I have no idea where or how to solve this issue. The problem is here somewhere:
ksh/src/cmd/ksh93/sh/deparse.c
Lines 210 to 254 in 0975086
A naïve patch could reuse code like this:
ksh/src/cmd/ksh93/sh/deparse.c
Lines 199 to 200 in 0975086
ksh/src/cmd/ksh93/sh/deparse.c
Lines 205 to 206 in 0975086
The text was updated successfully, but these errors were encountered: