some questions about bash internals

2011-09-27 Thread Bruce Adams
Hi, I have some questions about the internals of bash. I have been looking at porting (a copy of) the bash source tree to a more modern dialect of C primarily as a coding exercise and also to allow some comparisons to be made. This a slightly different take on the write a bash clone in C++ or Ja

Re: How to match regex in bash? (any character)

2011-09-27 Thread Peng Yu
On Tue, Sep 27, 2011 at 6:51 PM, Chet Ramey wrote: > On 9/27/11 6:41 PM, Roger wrote: > >> Correct.  After reading the entire Bash Manual page, I didn't see much >> mention >> of documentation resources (of ERE) besides maybe something about egrep from >> Bash's Manual Page or elsewhere on the we

Re: How to match regex in bash? (any character)

2011-09-27 Thread Chet Ramey
On 9/27/11 6:41 PM, Roger wrote: > Correct. After reading the entire Bash Manual page, I didn't see much mention > of documentation resources (of ERE) besides maybe something about egrep from > Bash's Manual Page or elsewhere on the web. After extensive research for > regex/regexpr, only found P

Re: How to match regex in bash? (any character)

2011-09-27 Thread Roger
> On Tue, Sep 27, 2011 at 08:15:09AM -0400, Greg Wooledge wrote: >On Mon, Sep 26, 2011 at 07:06:30PM -0800, Roger wrote: >> Some good reading I found is under the Bash Manual Page section "Parameter >> Expansion". >> >> From here, to learn more about regex/regexpr as the Bash Manual is quite >> b

Re: How to match regex in bash? (any character)

2011-09-27 Thread Greg Wooledge
On Mon, Sep 26, 2011 at 07:06:30PM -0800, Roger wrote: > Some good reading I found is under the Bash Manual Page section "Parameter > Expansion". > > From here, to learn more about regex/regexpr as the Bash Manual is quite brief > on regex, use the following manual pages: > > perlretut - Gives a