Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jun 2011 13:47:11 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222932 - head/share/skel
Message-ID:  <201106101347.p5ADlBQa029264@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jilles
Date: Fri Jun 10 13:47:11 2011
New Revision: 222932
URL: http://svn.freebsd.org/changeset/base/222932

Log:
  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

Modified:
  head/share/skel/dot.shrc

Modified: head/share/skel/dot.shrc
==============================================================================
--- head/share/skel/dot.shrc	Fri Jun 10 13:28:14 2011	(r222931)
+++ head/share/skel/dot.shrc	Fri Jun 10 13:47:11 2011	(r222932)
@@ -44,4 +44,4 @@ alias g='egrep -i'
 # esac
 
 # search path for cd(1)
-# CDPATH=.:$HOME
+# CDPATH=:$HOME



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201106101347.p5ADlBQa029264>