From owner-freebsd-doc@FreeBSD.ORG Tue Apr 26 13:29:36 2011 Return-Path: Delivered-To: doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 449DD1065672 for ; Tue, 26 Apr 2011 13:29:36 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id CB9E88FC13 for ; Tue, 26 Apr 2011 13:29:35 +0000 (UTC) Received: by bwz12 with SMTP id 12so741290bwz.13 for ; Tue, 26 Apr 2011 06:29:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:from:date:message-id :subject:to:content-type; bh=ohjbcxrJjI45ctbrN7nYKRnnxUcSHD42x+0ZYuI1dzI=; b=fx6XpxxCV80ShI+4aIb4xKULTAsrOi/l/H+TsHFDBIiHJAzgt8s+qypecPrnClgZsY Cdln3+ZFiggqM390KGyGy/Qsx+QH8AYIyw5PSS3ThOY9ZKGCVnROhm7IY8wVXJPQhbVb u11rIgzLKj7t5Xj3st7VpWBElv+uUjaXrwTHg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:from:date:message-id:subject:to:content-type; b=HQiGbSiJs9+4zYBgQA6RhHHb9hMjRiqkPTLlq0cFUnP4ZEYaWlekfR7qD5OCbI+hnW u/uDDO3UplyacrRdqHvx68fVobFufNJxb51nEnMcmytUJsmf0LaiKTILUp875A61f3t6 s11DTw9ZbrgTiiaE8DgxZ3DIfL32uLHCCscRk= Received: by 10.204.19.76 with SMTP id z12mr674544bka.205.1303824574522; Tue, 26 Apr 2011 06:29:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.42.21 with HTTP; Tue, 26 Apr 2011 06:28:57 -0700 (PDT) From: Chris Rees Date: Tue, 26 Apr 2011 14:28:57 +0100 Message-ID: To: doc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Usage of $() in Porter's Handbook X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2011 13:29:36 -0000 Hi all, This is somewhat the inverse of what happened in [1] --please let's not repeat it all. In the chapter on automated creation of pkg-plist [2] substitution is performed using the sh-ism $() -- something I as a tcsh user find very frustrating when copy/pasting the commands -- bear in mind that the default root shell is /bin/csh [3]. The patch at [4] changes the $(make -V PORTNAME) etc to more compatible `make -V PORTNAME`. If any clarification on backticks is needed in the text I'll be happy to oblige. Any complaints? Chris [1] http://lists.freebsd.org/pipermail/freebsd-ports/2010-July/062574.html [2] http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/plist-autoplist.html [3] http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/master.passwd?rev=1.40.22.2;content-type=text%2Fplain [4] http://www.bayofrum.net/~crees/patches/porters-plist-automated.diff