Helmut Schneider jumper99 at gmx.de
Tue May 24 20:16:39 UTC 2011

Doug Barton wrote:

> On 05/24/2011 12:39, Helmut Schneider wrote:
> > I need 'cd' in my Makefile. It seems that the variable ${CD} is not
> > defined and people are using 'cd' instead.
> > 
> > Is there a certain reason for that?
> Probably because there is no point in making a variable for it? :)

OK, seems I've been fooled:

[helmut at BSDHelmut ~]$ which cd
[helmut at BSDHelmut ~]$

I too late looked at /usr/bin/cd a bit closer:

[helmut at BSDHelmut ~]$ file /usr/bin/cd
/usr/bin/cd: POSIX shell script text executable
[helmut at BSDHelmut ~]$ cat /usr/bin/cd
# $FreeBSD: src/usr.bin/alias/generic.sh,v 2010/12/21
17:09:25 kensmith Exp $
# This file is in the public domain.
builtin ${0##*/} ${1+"$@"}
[helmut at BSDHelmut ~]$

More information about the freebsd-ports mailing list