]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r222932: skel/.shrc: Improve commented CDPATH example for POSIX
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 25 Jul 2011 21:58:39 +0000 (21:58 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 25 Jul 2011 21:58:39 +0000 (21:58 +0000)
commit665460254d51b7d0c89a75f19d823315eada2576
tree0bfc1ee52df5bfa8c5c33c30bcd6dc1aef5d5e01
parent9a550275563ca91a6ee2bb0199e291e18c519032
MFC r222932: 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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@224409 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
share/skel/dot.shrc