On 11/22/2012 01:48 PM, Thomas 'PointedEars' Lahn wrote:
> Jon LaBadie wrote:
>
>> On 11/21/2012 01:27 PM, Thomas 'PointedEars' Lahn wrote:
>>> Jon LaBadie wrote:
>>>>
...
>>>> ... Also did searches for $[ on each ($[[] for
>>>> regular expressions or $[ in web browsers). NADA
>>>
>>> Assuming your $MANPAGER (or equivalent) is less(1) (or equivalent), you
>>> have to find a match for one of `\$\[', `[$]\[', and `[$][[]', because
>>> unescaped `$' specifies the end of line/input in regular expressions.
>>>
>> Right you are. I haven't adjusted to the change from '$' being special
>> only at the ends of REs.
>
> When and where has that ever been the case?
>
Until when I know not, but it was true in basic REs since the dawn of grep
and ed and in extended REs as used by egrep and {n}awk.
From current regex(7):
Obsolete ("basic") regular expressions differ in several respects.
...
... , '$' is an ordinary character except at the end of the RE
...