diff options
author | jilles <jilles@FreeBSD.org> | 2011-06-10 13:47:11 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2011-06-10 13:47:11 +0000 |
commit | 564568bfd407d4897ef5964d88c310d8fde625d8 (patch) | |
tree | 51e67c68c5b9110c337ee831dce3c7af834be578 | |
parent | 5b26ffdce6c025946a7296a007a3d32a2a074ae2 (diff) | |
download | FreeBSD-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
-rw-r--r-- | share/skel/dot.shrc | 2 |
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 |