[488] in Athena Bugs

home help back first fref pref prev next nref lref last post

'cdpath' is an evil concept

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Sun Jul 10 05:31:24 1988

Date: Sun, 10 Jul 88 05:29:15 EDT
From: Ken Raeburn <raeburn@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU

Well, having it enabled by default is.  In /.cshrc:

	set cdpath=(/)

Very bad if you try something like:

	(cd bin;rm -f *)&

When the current directory doesn't have a ./bin, it checks cdpath and
decides it should chdir to /bin, and goes merrily along its way...

:-(

home help back first fref pref prev next nref lref last post