From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9853 invoked by alias); 25 Aug 2017 15:20:09 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 9359 invoked by uid 89); 25 Aug 2017 15:20:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*M:2801 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 25 Aug 2017 15:20:07 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 439354A6EF for ; Fri, 25 Aug 2017 15:20:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 439354A6EF Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=eblake@redhat.com Received: from [10.10.122.253] (ovpn-122-253.rdu2.redhat.com [10.10.122.253]) by smtp.corp.redhat.com (Postfix) with ESMTP id F2B186C434 for ; Fri, 25 Aug 2017 15:20:05 +0000 (UTC) Subject: Re: Aliases - I learned something new To: cygwin@cygwin.com References: <6bf0908e-f559-b5bb-5ca3-b1cac1b9abde@gmail.com> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <8e128154-2801-0eef-4c2d-08ca21f467b5@redhat.com> Date: Fri, 25 Aug 2017 15:20:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <6bf0908e-f559-b5bb-5ca3-b1cac1b9abde@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jKrsb4DUnDrwjTPXGwo5IF58REE74naQt" X-IsSubscribed: yes X-SW-Source: 2017-08/txt/msg00235.txt.bz2 --jKrsb4DUnDrwjTPXGwo5IF58REE74naQt Content-Type: multipart/mixed; boundary="UXLUwvRoBMMBr19xoow6XxwbFLXedeDgB"; protected-headers="v1" From: Eric Blake To: cygwin@cygwin.com Message-ID: <8e128154-2801-0eef-4c2d-08ca21f467b5@redhat.com> Subject: Re: Aliases - I learned something new References: <6bf0908e-f559-b5bb-5ca3-b1cac1b9abde@gmail.com> In-Reply-To: <6bf0908e-f559-b5bb-5ca3-b1cac1b9abde@gmail.com> --UXLUwvRoBMMBr19xoow6XxwbFLXedeDgB Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Content-length: 679 On 08/25/2017 10:00 AM, cyg Simple wrote: > If the value of an alias ends in a space the word following the issuance > of the alias command is also checked for alias expansion. In fact, this behavior is POSIX-mandated, so that you can do things like: alias exec=3D'exec ' and get alias expansion on 'foo' when you do 'exec foo' > Example: >=20 > $ alias t1=3D'echo abc' > $ alias t2=3D'dev' > $ t1 t2 > abc t2 >=20 > $ alias t1=3D'echo abc ' > $ t1 t2 > abc def Doesn't quite match what you typed above (dev vs. def), but illustrates the point. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org --UXLUwvRoBMMBr19xoow6XxwbFLXedeDgB-- --jKrsb4DUnDrwjTPXGwo5IF58REE74naQt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 619 -----BEGIN PGP SIGNATURE----- Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAlmgQCUACgkQp6FrSiUn Q2r1/Af7Blx308O7gsAQTPHMA0Z8/F/ByUJfF/5PEfqgWFlNGY7cvhFEzlcOIZI3 Wp9H6O+NsAyfLCcErRvCliFnCPc0nEcHjI0T3D8GQDzKFezNszsh69EtxEXVubAA yzbOjsmZhS+s8EhXSu066tbZpFTbFL/5t0IDDg9KJyU8WfHPNL4t+JovEwq2j9Td 7QMz1P9/d38rhC8GnsLOFqkWZBfkPY1cw3245CnnOA9sOUNzUQUQzYuPtkVPtqEm vwkmBa+UkKWcS79xBGoCHJZZzmOg/4t3VqDZKrETg8BqLorMMk/CmqnMGXcIJPqN wNa9VoOVzFvYZDuM8bTe1st8Mwgiew== =gQ1P -----END PGP SIGNATURE----- --jKrsb4DUnDrwjTPXGwo5IF58REE74naQt--