Re: [1003.1(2016/18)/Issue7+TC2 0001558]: require [^...] in addition to [!...] for bracket expression negation

2022-02-18 Thread Paul Eggert
On 2/18/22 07:10, Zack Weinberg wrote: I think the only practical way to fix this is to convert $as_tr_* into shell functions, which will also mean that we don't need the eval anymore, which is nice. I found something simpler, if perhaps not quite as nice, and installed the attached. I

Re: [1003.1(2016/18)/Issue7+TC2 0001558]: require [^...] in addition to [!...] for bracket expression negation

2022-02-18 Thread Zack Weinberg
On Fri, Feb 18, 2022, at 9:38 AM, Eric Blake wrote: >> typeset as_tr_cpp='eval sed >> '\''y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]%_%g'\' >> >> (via “typeset -p”), and without -o noglob, using it as simply >>

Re: [1003.1(2016/18)/Issue7+TC2 0001558]: require [^...] in addition to [!...] for bracket expression negation

2022-02-18 Thread Eric Blake
Reporting a bug on behalf of mirabilos: On Thu, Feb 17, 2022 at 11:46:52PM +, Austin Group Bug Tracker via austin-group-l at The Open Group wrote: > https://www.austingroupbugs.net/view.php?id=1558 ... > Summary:require [^...] in addition to [!...] for bracket >