summaryrefslogtreecommitdiff
path: root/bin/csh
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-10-19 18:29:29 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-10-19 18:29:29 +0000
commit2e5faf5b30948aaedd4afe6cd89fce60cb937db0 (patch)
treeaaa0278d8c50d2088c8104d5692783c270866e0a /bin/csh
parent7bc6c49b127c0806618143892051b391c0efc873 (diff)
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.
Diffstat (limited to 'bin/csh')
-rw-r--r--bin/csh/csh.17
1 files changed, 6 insertions, 1 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.