Hi Collin, > I'll submit a bug report on the musl lists now.
Thanks. > I don't think this function is used too much Probably no one noticed the bug before, because the typical use of this function is to test whether a given shell string is valid, as in [1], and for this use, the bug hardly matters. Bruno [1] https://sources.debian.org/src/util-linux/2.40.1-1/lib/shells.c/?hl=108#L108