On Fri, 2004-05-21 at 09:44, Matthias Keller wrote:
> I'm using Version 5.8.1 and when I do something like:
> perl -ne "print if /([a-z]+)\s+(?!\1\b)/"
> it produces:
>
> bash: !\1\b: event not found
>
> So I guess my perl is too old or something like this??
The error message is from bash, not perl.
The exclamation point is syntactically significant to bash. Enclose the
perl script in single quotes instead of double quotes and that will
prevent bash from trying to interpret it for substitutions.
Details: bash interprets ! as a command-history substitution, similar to
the way it interprets $ as an environment variable substitution.
--
John Hardin KA7OHZ <[EMAIL PROTECTED]>
Internal Systems Administrator voice: (425) 672-1304
Apropos Retail Management Systems, Inc. fax: (425) 672-0192
-----------------------------------------------------------------------
Failure to plan ahead on someone else's part does not constitute an
emergency on my part.
- David W. Barts in a.s.r
-----------------------------------------------------------------------
4 days until Internal Corp 3.0.6 + Ascent LHF upgrade