From owner-freebsd-ports@FreeBSD.ORG Tue May 24 20:16:39 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 881A61065670 for ; Tue, 24 May 2011 20:16:39 +0000 (UTC) (envelope-from freebsd-ports@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 43A4A8FC08 for ; Tue, 24 May 2011 20:16:39 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QOy1t-0002sQ-Py for freebsd-ports@freebsd.org; Tue, 24 May 2011 22:16:37 +0200 Received: from p57915ef2.dip.t-dialin.net ([87.145.94.242]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 May 2011 22:16:37 +0200 Received: from jumper99 by p57915ef2.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 May 2011 22:16:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-ports@freebsd.org From: "Helmut Schneider" Date: Tue, 24 May 2011 20:16:26 +0000 (UTC) Lines: 27 Message-ID: References: <4DDC1075.50605@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p57915ef2.dip.t-dialin.net User-Agent: XanaNews/1.19.1.320 X-Ref: news.gmane.org ~XNS:000001BA X-Antivirus: avast! (VPS 110524-1, 24.05.2011), Outbound message X-Antivirus-Status: Clean Subject: Re: ${CD} X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 20:16:39 -0000 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 ~]$