Hi,
I just wondered if anyone has an opinion on the proposed patches I
send with my last message. Without one of these patches there are
still 94 tests that fail on my Sparc/Solaris 9 system:
Ralf Menzel <[EMAIL PROTECTED]> writes:
> Last time I didn't give an example for the behaviour of the Solaris
> grep. Here is one:
>
> --- snip ---
> bash> cat greptest
> #!/bin/sh
> for GREP in /usr/bin/grep /usr/xpg4/bin/grep /home/menzel/sw/bin/grep ; do
> echo $GREP:
> echo 'aa
> a|ba|b' | $GREP '\(a\|b\)\1'
> done
> bash> ./greptest
> /usr/bin/grep:
> a|ba|b
> /usr/xpg4/bin/grep:
> a|ba|b
> /home/menzel/sw/bin/grep:
> aa
> bash> /home/menzel/sw/bin/grep --version | sed 1q
> grep (GNU grep) 2.5.1
> --- snip ---
I wondered whether I should write down a paragraph that document this
behaviour. But I guess this is unnecessary. As far as I can tell POSIX
reserves the use of alternation ("|") to extended regular expressions.
See, for example:
http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap09.html
Greeting,
Ralf Menzel