NetBSD-Bugs archive

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

Re: bin/57773 (/bin/sh: Substring processing in assignments fail for quoted control characters)



Synopsis: /bin/sh: Substring processing in assignments fail for quoted control characters

State-Changed-From-To: open->analyzed
State-Changed-By: kre%NetBSD.org@localhost
State-Changed-When: Fri, 15 Dec 2023 03:34:16 +0000
State-Changed-Why:
I know what is happening, and why (that it fails with \202, and possibly
a few nearby octet values, is no coincidence (those are used internally
in strings).   I even know why it makes a difference whether the expansion
is in an assignment or elsewhere.   The fix seems to be very simple.
I am testing it now (this kind of seemingly trivial change to sh can have
ramifications that are hard to imagine, so lots of testing is required).
The (current) sh ATF tests all pass though.





Home | Main Index | Thread Index | Old Index