From 5465df75affa6e96def5df641090f1833bf3c1eb Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Fri, 17 Dec 2004 10:32:13 +0000 Subject: note the effect of `$' and `~' in configuration file, and how to escape them; based on netbsd -r 1.316, pr 42762, from peter pentchev; --- usr.sbin/ppp/ppp/ppp.8.m4 | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/usr.sbin/ppp/ppp/ppp.8.m4 b/usr.sbin/ppp/ppp/ppp.8.m4 index 1c7cb744f6a..1d4ba022970 100644 --- a/usr.sbin/ppp/ppp/ppp.8.m4 +++ b/usr.sbin/ppp/ppp/ppp.8.m4 @@ -25,7 +25,7 @@ changecom(,)dnl .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: ppp.8.m4,v 1.19 2004/07/30 22:25:37 jmc Exp $ +.\" $OpenBSD: ppp.8.m4,v 1.20 2004/12/17 10:32:12 jmc Exp $ .\" .Dd September 20, 1995 .Dt PPP 8 @@ -772,10 +772,33 @@ for compatibility with older versions of .Nm ppp . .It A label name starts in the first column and is followed by -a colon -.Pq Sq \&: . +a +.Sq \&: +character. .It A command line must contain a space or tab in the first column. +.It +A string starting with a +.Sq $ +character is substituted with the value of the environment variable by +the same name. +Likewise, a string starting with a +.Sq ~ +character is substituted with the full path to the home directory of +the user account by the same name, and the +.Sq ~ +character by itself is substituted with the full path to the home directory +of the current user. +To include a literal +.Sq $ +or +.Sq ~ +character in a command or argument, escape it with a +.Sq \e +character. +For example: +.Pp +.Dl set password pa\e$ss\e~word .El .Pp The -- cgit v1.2.3