On Fri, Dec 20, 2024 at 04:50:17 -0800, Wiley Young wrote:
> For some reason, while `help -d 'c'` prints the same thing as `help -c
> 'c*'` (note the asterisk), the same is not true when the character is
> left-bracket: `help -c '[*'.

Why did you expect them to be the same?  Assuming you meant -d not -c:

help -d [    exactly matches the [ command, so it only prints one thing

help -d [\*  matches both the [ and [[ commands, so it prints both

help -d c    does not exactly match anything, so it's treated like c\*

Reply via email to