bug-bash
[Top][All Lists]
Advanced

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

Re: Don't show help of `readonly' and `readarray' when I run `help read'


From: Clark J. Wang
Subject: Re: Don't show help of `readonly' and `readarray' when I run `help read'
Date: Sat, 12 Feb 2011 09:49:14 +0800

I forgot to reply to all

On Fri, Feb 11, 2011 at 11:15 PM, Chet Ramey <chet.ramey@case.edu> wrote:

> On 2/11/11 3:53 AM, Clark J. Wang wrote:
> >
> >
> > On Thu, Feb 10, 2011 at 10:21 PM, Chet Ramey <chet.ramey@case.edu
> > <mailto:chet.ramey@case.edu>> wrote:
> >
> >     On 2/10/11 4:03 AM, Clark J. Wang wrote:
> >     > help: help [-dms] [pattern ...]
> >     >
> >     > From my understanding the *pattern* here must be a glob-style
> pattern
> >     > (wildcard) so `readonly' does not match the pattern `read'.
> >
> >     The pattern is composed of the same characters as a glob pattern, but
> >     it's treated more like 'grep ^pattern topic' if it doesn't contain
> any
> >     special pattern matching characters.
> >
> >     Kind of like the following:
> >
> >     $ printf "%s\n" read readonly readarray | grep ^read /dev/stdin
> >     read
> >     readonly
> >     readarray
> >
> >
> >
> > But the command `help rea?' can only prints help for `read' so I don't
> > think it's treated more like 'grep ^pattern topic'.
>
> But that contains a pattern character.  I said above that it was treated
> like grep if it didn't contain any special pattern matching characters.
>
> Chet
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                 ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, ITS, CWRU    chet@case.edu
> http://cnswww.cns.cwru.edu/~chet/
>



-- 
Clark


reply via email to

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