On 18 July 2011 04:28, Jason McIntyre <j...@cava.myzen.co.uk> wrote: > can i ask why you want to support this? it is a gnu grep thing or > something?
It isn't. I looked on AIX, Tru64, SCO and Solaris. The OS-provided vi supported this syntax on all four systems, and on Solaris, /usr/bin/grep supported it as well. The other greps didn't. SunOS fakename 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-250 AIX fakename 1 6 005D981A4C00 OSF1 fakename V4.0 1229 alpha SCO_SV fakename 3.2 2 i386 Though GNU grep does support this behaviour also. I like and use it. John