From owner-freebsd-questions@FreeBSD.ORG Thu Feb 24 20:51:46 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10E841065670 for ; Thu, 24 Feb 2011 20:51:46 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id B9DE98FC19 for ; Thu, 24 Feb 2011 20:51:45 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PsiA4-0008P1-82 for freebsd-questions@freebsd.org; Thu, 24 Feb 2011 21:51:44 +0100 Received: from static-87-79-237-121.netcologne.de ([87.79.237.121]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Feb 2011 21:51:44 +0100 Received: from tg by static-87-79-237-121.netcologne.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Feb 2011 21:51:44 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Thorsten Glaser Date: Thu, 24 Feb 2011 20:51:32 +0000 (UTC) Lines: 26 Message-ID: References: <4D61599E.4040008@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 87.79.237.121 (Opera/9.27 (X11; MirBSD i386; U; en)) Subject: Re: Backtick versus $() X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2011 20:51:46 -0000 Andres Perera zoho.com> writes: > "mandated by posix" and reality usually aren't in sync, as i'm sure you know by In this case, closely enough. > now since you pointed out solaris It’s just /bin/sh on long outdated versions (newer ones, both from Horracle and not, have AT&T ksh93 there instead). No need to use it, anyway. sh scripts can usually depend on a POSIX shell (and it’s sensible to do so). Some operating environments have guaranteed that (MirBSD even guarantees mksh but Debian Policy §10.4 explicitly states POSIX plus a few extensions). And AFAIK all FreeBSD® shells have it. bye, //mirabilos -- “It is inappropriate to require that a time represented as seconds since the Epoch precisely represent the number of seconds between the referenced time and the Epoch.” -- IEEE Std 1003.1b-1993 (POSIX) Section B.2.2.2