From bb7d10c9c586f498cc643121d65bd0f6a592ff18 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Wed, 29 Dec 1999 22:31:10 +0000 Subject: [PATCH] Mention that it's only necessary to escape the '-' in chat scripts twice (once for the arg parsing and once to make it a normal character). Make the man page example consistent. Reminded by: Bryan Liesner --- usr.sbin/ppp/README.changes | 2 ++ usr.sbin/ppp/ppp.8 | 2 +- usr.sbin/ppp/ppp.8.m4 | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ppp/README.changes b/usr.sbin/ppp/README.changes index 99252d8a6ad..a0a0694068e 100644 --- a/usr.sbin/ppp/README.changes +++ b/usr.sbin/ppp/README.changes @@ -98,3 +98,5 @@ o Ppp now waits either the full ``set cd'' time or until carrier is detected o The -alias flag has been deprecated. The -nat flag should be used instead. o Unbalanced quotes in commands are now warned about and the entire command is ignored. +o It is now only necessary to escape the `-' character in chat scripts twice. + See the example files for details. diff --git a/usr.sbin/ppp/ppp.8 b/usr.sbin/ppp/ppp.8 index 6d545953147..9afd9376f2f 100644 --- a/usr.sbin/ppp/ppp.8 +++ b/usr.sbin/ppp/ppp.8 @@ -3886,7 +3886,7 @@ is running in interactive mode, file descriptor 3 is attached to For example (wrapped for readability); .Bd -literal -offset indent set login "TIMEOUT 5 \\"\\" \\"\\" login:--login: ppp \e -word: ppp \\"!sh \\\\\\\\-c \\\\\\"echo \\\\\\\\-n label: >&2\\\\\\"\\" \e +word: ppp \\"!sh \\\\-c \\\\\\"echo \\\\-n label: >&2\\\\\\"\\" \e \\"!/bin/echo in\\" HELLO" .Ed .Pp diff --git a/usr.sbin/ppp/ppp.8.m4 b/usr.sbin/ppp/ppp.8.m4 index 6d545953147..9afd9376f2f 100644 --- a/usr.sbin/ppp/ppp.8.m4 +++ b/usr.sbin/ppp/ppp.8.m4 @@ -3886,7 +3886,7 @@ is running in interactive mode, file descriptor 3 is attached to For example (wrapped for readability); .Bd -literal -offset indent set login "TIMEOUT 5 \\"\\" \\"\\" login:--login: ppp \e -word: ppp \\"!sh \\\\\\\\-c \\\\\\"echo \\\\\\\\-n label: >&2\\\\\\"\\" \e +word: ppp \\"!sh \\\\-c \\\\\\"echo \\\\-n label: >&2\\\\\\"\\" \e \\"!/bin/echo in\\" HELLO" .Ed .Pp