bug-bash
[Top][All Lists]
Advanced

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

Re: An inconsistency of the outputs of help builtin


From: Greg Wooledge
Subject: Re: An inconsistency of the outputs of help builtin
Date: Fri, 20 Dec 2024 08:09:40 -0500
User-agent: Mutt/1.10.1 (2018-07-13)

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

[Prev in Thread] Current Thread [Next in Thread]