summaryrefslogtreecommitdiffstats
path: root/share/skel
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2011-06-10 13:47:11 +0000
committerjilles <jilles@FreeBSD.org>2011-06-10 13:47:11 +0000
commit564568bfd407d4897ef5964d88c310d8fde625d8 (patch)
tree51e67c68c5b9110c337ee831dce3c7af834be578 /share/skel
parent5b26ffdce6c025946a7296a007a3d32a2a074ae2 (diff)
downloadFreeBSD-src-564568bfd407d4897ef5964d88c310d8fde625d8.zip
FreeBSD-src-564568bfd407d4897ef5964d88c310d8fde625d8.tar.gz
skel/.shrc: Improve commented CDPATH example for POSIX requirements.
POSIX says an empty entry in CDPATH shall not result in the new directory being printed, while any non-empty entry shall result in the new directory being printed, including ".". Therefore, the value of CDPATH should almost always start with a colon, not dot and colon. Our sh does not print the name for empty entries as well as "." entries. MFC after: 1 week
Diffstat (limited to 'share/skel')
-rw-r--r--share/skel/dot.shrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/skel/dot.shrc b/share/skel/dot.shrc
index 7349169..ea32f35 100644
--- a/share/skel/dot.shrc
+++ b/share/skel/dot.shrc
@@ -44,4 +44,4 @@ alias g='egrep -i'
# esac
# search path for cd(1)
-# CDPATH=.:$HOME
+# CDPATH=:$HOME
OpenPOWER on IntegriCloud