Re: [PATCHES] backslashes in pgindent

2005-07-16 Thread Bruce Momjian
Luke Lonergan wrote: > Bruce, > > On 7/15/05 9:59 PM, "Bruce Momjian" wrote: > > > Actually, mine returns ')' too for the last command. I didn't copy > > that into the email. How about the top tests? Notice I get an error on > > the first one without the backslash. Are you OK escaping '(' b

Re: [PATCHES] backslashes in pgindent

2005-07-15 Thread Luke Lonergan
Bruce, On 7/15/05 9:59 PM, "Bruce Momjian" wrote: > Actually, mine returns ')' too for the last command. I didn't copy > that into the email. How about the top tests? Notice I get an error on > the first one without the backslash. Are you OK escaping '(' but not > ')'? That might be a solu

Re: [PATCHES] backslashes in pgindent

2005-07-15 Thread Bruce Momjian
Luke Lonergan wrote: > Bruce, > > I found that parentheses in gawk regular expressions require backslashes > > so they are not treated as regex groupings: > > > > $ echo '('|awk '$0 ~ /(/ {print $0}' > > awk: cmd. line:1: fatal: Unmatched ( or \(: /(/ > > $ echo '('|awk '$0 ~ /\(/ {print $0}' > >

Re: [PATCHES] backslashes in pgindent

2005-07-15 Thread Luke Lonergan
Bruce, > I found that parentheses in gawk regular expressions require backslashes > so they are not treated as regex groupings: > > $ echo '('|awk '$0 ~ /(/ {print $0}' > awk: cmd. line:1: fatal: Unmatched ( or \(: /(/ > $ echo '('|awk '$0 ~ /\(/ {print $0}' > ( > Now, it seems closing parenthe