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 <bleez@netaxs.com>
This commit is contained in:
Brian Somers 1999-12-29 22:31:10 +00:00
parent 9edc38efd7
commit bb7d10c9c5
3 changed files with 4 additions and 2 deletions

View File

@ -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.

View File

@ -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

View File

@ -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