diff options
Diffstat (limited to 'usr.bin/m4/m4.1')
-rw-r--r-- | usr.bin/m4/m4.1 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/m4/m4.1 b/usr.bin/m4/m4.1 index f9bf2dabbed..fe1b710fe0f 100644 --- a/usr.bin/m4/m4.1 +++ b/usr.bin/m4/m4.1 @@ -1,4 +1,4 @@ -.\" @(#) $OpenBSD: m4.1,v 1.12 2000/03/18 01:06:55 espie Exp $ +.\" @(#) $OpenBSD: m4.1,v 1.13 2000/03/23 21:10:17 aaron Exp $ .\" .\" .Dd January 26, 1993 @@ -67,7 +67,8 @@ Add directory .Ar dirname to the include path. .It Fl g -Activate GNU-m4 compatibility mode. In this mode, changequote with +Activate GNU-m4 compatibility mode. +In this mode, changequote with two empty parameters deactivates quotes, translit handles simple character ranges (e.g., a-z) and regular expressions mimic emacs behavior. .Sh SYNTAX @@ -236,8 +237,9 @@ but it saves the definition on a stack for later retrieval by .Ic popdef . .It Ic regexp -Finds a regular expression in a string. If no further arguments are given, -it returns the first match position or -1 if no match. If a third argument +Finds a regular expression in a string. +If no further arguments are given, +it returns the first match position or \-1 if no match. If a third argument is provided, it returns the replacement string, with sub-patterns replaced. .It Ic shift Returns all but the first argument, the remaining arguments are |