bug#72850: Can't match ] in [ ] regexp bug?

2024-08-28 Thread Khoa Ton
I'm on Ubuntu: $ uname -a Linux nile 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux I can't seem to get grep to match lines with ] in them when using [ ] expression. grep only matches two characters string "\]" instead: $ echo ']' | grep -E "[\]]

bug#72850: Can't match ] in [ ] regexp bug?

2024-08-29 Thread Khoa Ton
On 8/28/2024 1:32 AM, arn...@skeeve.com wrote: Khoa Ton wrote: I'm on Ubuntu: $ uname -a Linux nile 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux I can't seem to get grep to match lines with ] in them when using [ ] expression.