From owner-freebsd-questions@FreeBSD.ORG Thu Feb 24 20:21:49 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 581D110656C6 for ; Thu, 24 Feb 2011 20:21:49 +0000 (UTC) (envelope-from 839273@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0D1628FC1D for ; Thu, 24 Feb 2011 20:21:48 +0000 (UTC) Received: by gyh4 with SMTP id 4so487295gyh.13 for ; Thu, 24 Feb 2011 12:21:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=DI5yheg+FOiNqx7EgW31M2bPBHFYirTxjuVJ55r8/Rs=; b=c1hOPQkxLzDAOWbWsHe2mfWbuXoXSa/fYpV10IVxGB1IJBHdQbGSV65at+YcKxFdWJ FDnXYkqrY28Fy7H/PWfiB7BA/1cFGuUJNYCS+/r8odEUYXYrf4U3eejVJv1I8qNAdRYs tIofx4+S8XY378Yx1c779spNmaIoVvBUHg6dY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=FPJXluFhMQMNvzM6+DAljjU5OXSdgLZf+ibNp3PmO7EijVD9jPDvEDyTHnBLg+iN5Y JKmemO0IYdunqvz9y9e5i/Y8Fz/+c/p0TxjAzIYxBRau8cWn0FDQ2lIaOEBVaBrQM5Kf gFMvk4ZNL8BtJisg5vDx2zFdOsGVq5lzK44Bo= MIME-Version: 1.0 Received: by 10.150.215.2 with SMTP id n2mr2412327ybg.353.1298578907886; Thu, 24 Feb 2011 12:21:47 -0800 (PST) Sender: 839273@gmail.com Received: by 10.150.215.21 with HTTP; Thu, 24 Feb 2011 12:21:47 -0800 (PST) In-Reply-To: References: <4D61599E.4040008@gmail.com> Date: Thu, 24 Feb 2011 15:51:47 -0430 X-Google-Sender-Auth: BIov2anCzrWSmFsBOgw0AYUYw8U Message-ID: From: Andres Perera To: Thorsten Glaser Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Backtick versus $() X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: 839273@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2011 20:21:49 -0000 On Thu, Feb 24, 2011 at 3:36 PM, Thorsten Glaser wrote: > Andres Perera zoho.com> writes: > >> > Nowadays all shells supports $() so I advise you to use it :). >> >> no, not all shells support $() > > They do, it=E2=80=99s mandated by POSIX. There=E2=80=99s no reason to sup= port the > accidentally non-combining accent gravis (so-called =E2=80=9Cbacktick=E2= =80=9D=C2=B9) > any more, unless you specifically target Solaris 10 and below=E2=80=99s > /bin/sh (which always had a ksh and /usr/xpg4/bin/sh which both > are POSIX compatible), or, worse, the Bourne shell (you know, the > one where you wrote ^ instead of | for pipes). "mandated by posix" and reality usually aren't in sync, as i'm sure you kno= w by now since you pointed out solaris