diff options
author | 2000-10-19 18:29:26 +0000 | |
---|---|---|
committer | 2000-10-19 18:29:26 +0000 | |
commit | 40e5e19ae18d621fd58df7c1ad807a7482e4c878 (patch) | |
tree | 7bbd7de5dc7bf3f4ca67cf88abccc089c7b1507f | |
parent | Remove merge conflict marker accidentaly left in this file. (diff) | |
download | wireguard-openbsd-40e5e19ae18d621fd58df7c1ad807a7482e4c878.tar.xz wireguard-openbsd-40e5e19ae18d621fd58df7c1ad807a7482e4c878.zip |
Where we talk about $$, also say mention that PIDs are not safe to use for
generating temporary file names, and point people to mktemp(1) instead.
-rw-r--r-- | bin/csh/csh.1 | 7 | ||||
-rw-r--r-- | bin/ksh/ksh.1 | 10 | ||||
-rw-r--r-- | bin/ksh/ksh.1tbl | 10 | ||||
-rw-r--r-- | bin/ksh/sh.1 | 10 | ||||
-rw-r--r-- | bin/ksh/sh.1tbl | 10 |
5 files changed, 34 insertions, 13 deletions
diff --git a/bin/csh/csh.1 b/bin/csh/csh.1 index 3fe55c5bd8a..ad9bc4cd76e 100644 --- a/bin/csh/csh.1 +++ b/bin/csh/csh.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: csh.1,v 1.36 2000/04/17 02:32:41 aaron Exp $ +.\" $OpenBSD: csh.1,v 1.37 2000/10/19 18:29:26 aaron Exp $ .\" $NetBSD: csh.1,v 1.10 1995/03/21 09:02:35 cgd Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 @@ -1068,6 +1068,11 @@ if the current input filename is known, if it is not. .It \&$\&$\& Substitute the (decimal) process number of the (parent) shell. +Do +.Em NOT +use this mechanism for generating temporary file names; see +.Xr mktemp 1 +instead. .It $! Substitute the (decimal) process number of the last background process started by this shell. diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1 index 99810bf5d96..86cf8b1d936 100644 --- a/bin/ksh/ksh.1 +++ b/bin/ksh/ksh.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ksh.1,v 1.35 2000/07/06 05:42:41 aaron Exp $ +.\" $OpenBSD: ksh.1,v 1.36 2000/10/19 18:29:27 aaron Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -1241,8 +1241,12 @@ The number of positional parameters (i.e., $1, $2, etc.). .It Ev \&$ The process ID of the shell, or the .Tn PID -of the original shell if it is a -subshell. +of the original shell if it is a subshell. +Do +.Em NOT +use this mechanism for generating temporary file names; see +.Xr mktemp 1 +instead. .It Ev \&- The concatenation of the current single letter options (see .Ic set diff --git a/bin/ksh/ksh.1tbl b/bin/ksh/ksh.1tbl index 074a3bfb593..3da8383d05e 100644 --- a/bin/ksh/ksh.1tbl +++ b/bin/ksh/ksh.1tbl @@ -1,4 +1,4 @@ -.\" $OpenBSD: ksh.1tbl,v 1.35 2000/07/06 05:42:41 aaron Exp $ +.\" $OpenBSD: ksh.1tbl,v 1.36 2000/10/19 18:29:27 aaron Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -1241,8 +1241,12 @@ The number of positional parameters (i.e., $1, $2, etc.). .It Ev \&$ The process ID of the shell, or the .Tn PID -of the original shell if it is a -subshell. +of the original shell if it is a subshell. +Do +.Em NOT +use this mechanism for generating temporary file names; see +.Xr mktemp 1 +instead. .It Ev \&- The concatenation of the current single letter options (see .Ic set diff --git a/bin/ksh/sh.1 b/bin/ksh/sh.1 index 4d3c1aab0a1..1df84a30a4f 100644 --- a/bin/ksh/sh.1 +++ b/bin/ksh/sh.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sh.1,v 1.19 2000/03/21 14:06:55 aaron Exp $ +.\" $OpenBSD: sh.1,v 1.20 2000/10/19 18:29:28 aaron Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -1069,8 +1069,12 @@ The number of positional parameters (i.e., $1, $2, etc.). .It Ev \&$ The process ID of the shell, or the .Tn PID -of the original shell if it is a -subshell. +of the original shell if it is a subshell. +Do +.Em NOT +use this mechanism for generating temporary file names; see +.Xr mktemp 1 +instead. .It Ev \&- The concatenation of the current single letter options (see .Ic set diff --git a/bin/ksh/sh.1tbl b/bin/ksh/sh.1tbl index f558a29d13c..e944244389b 100644 --- a/bin/ksh/sh.1tbl +++ b/bin/ksh/sh.1tbl @@ -1,4 +1,4 @@ -.\" $OpenBSD: sh.1tbl,v 1.19 2000/03/21 14:06:55 aaron Exp $ +.\" $OpenBSD: sh.1tbl,v 1.20 2000/10/19 18:29:28 aaron Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -1069,8 +1069,12 @@ The number of positional parameters (i.e., $1, $2, etc.). .It Ev \&$ The process ID of the shell, or the .Tn PID -of the original shell if it is a -subshell. +of the original shell if it is a subshell. +Do +.Em NOT +use this mechanism for generating temporary file names; see +.Xr mktemp 1 +instead. .It Ev \&- The concatenation of the current single letter options (see .Ic set |