Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2011 20:16:26 +0000 (UTC)
From:      "Helmut Schneider" <jumper99@gmx.de>
To:        freebsd-ports@freebsd.org
Subject:   Re: ${CD}
Message-ID:  <xn0hei9e4b5icx001@news.gmane.org>
References:  <xn0hei8dh9tlbj000@news.gmane.org> <4DDC1075.50605@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@BSDHelmut ~]$ which cd
/usr/bin/cd
[helmut@BSDHelmut ~]$

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

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




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