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: Chet Ramey
Subject: Re: Don't show help of `readonly' and `readarray' when I run `help read'
Date: Thu, 10 Feb 2011 09:21:10 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

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


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/



reply via email to

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