From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5653 invoked by alias); 28 Jan 2017 19:06:46 -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 5637 invoked by uid 89); 28 Jan 2017 19:06:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_05,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=2s, mingw32-g, mingw32g, punct 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; Sat, 28 Jan 2017 19:06:36 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CED51C049D5D for ; Sat, 28 Jan 2017 19:06:35 +0000 (UTC) Received: from [10.10.117.56] (ovpn-117-56.rdu2.redhat.com [10.10.117.56]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v0SJ6Zsg028710 for ; Sat, 28 Jan 2017 14:06:35 -0500 Subject: Re: cygcheck and literal plus sign To: cygwin@cygwin.com References: <588c8cc9.a5249d0a.d8d5b.49c2@mx.google.com> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <8ce40df2-0a8f-4128-9107-ea2f16ec7fca@redhat.com> Date: Sat, 28 Jan 2017 19:06:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7SCxakRAKae2I5rAGeWvX2nofqvbplKPc" X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00355.txt.bz2 --7SCxakRAKae2I5rAGeWvX2nofqvbplKPc Content-Type: multipart/mixed; boundary="PBGBEDQqt2B71F0xTD6QH1n3AaEaSPFUf"; protected-headers="v1" From: Eric Blake To: cygwin@cygwin.com Message-ID: <8ce40df2-0a8f-4128-9107-ea2f16ec7fca@redhat.com> Subject: Re: cygcheck and literal plus sign References: <588c8cc9.a5249d0a.d8d5b.49c2@mx.google.com> In-Reply-To: --PBGBEDQqt2B71F0xTD6QH1n3AaEaSPFUf Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 735 On 01/28/2017 11:45 AM, Brian Inglis wrote: >> it did put me on the right track: >> $ cygcheck -p 'mingw32-g[:punct:][:punct:]' | awk 'NR>1{$0=3D$1}1' > Your command is the same as: >=20 > $ cygcheck -p mingw32-g[:ctnpu][:ctnpu] | sed '2,$s/\s.*//' Not necessarily. You forgot quotes, so depending on what is in your current directory, that glob might expand. >=20 > ITYM: >=20 > $ cygcheck -p mingw32-g[[:punct:]][[:punct:]] | sed '2,$s/\s.*//' Or, with proper quoting to shield yourself from globbing based on the contents of the current directory: cygcheck -p 'mingw32-g[[:punct:]][[:punct:]]' | sed '2,$s/\s.*//' --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --PBGBEDQqt2B71F0xTD6QH1n3AaEaSPFUf-- --7SCxakRAKae2I5rAGeWvX2nofqvbplKPc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 604 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJYjOu5AAoJEKeha0olJ0Nqzu4H/0ZWr6Yn8DoH9AYHLPUIdl4H 7qGHAP9zhPzVfrf63I/7CSXBTZcUAKf2IWd4PIstffD3NbgHxRl437lb3O1vjre1 FgAEpGVwFM9+ZoJo4wu18KN0uDxbWQI6W6Rcgtk0Zqw3GZ0Sam9/lqcW9HLHYszY wSJKk1P+pbUgU0NEgsJt4U0ueghX9Ai01oNdac5A4cbToA10CMN+XIlNQGmJDIVL m2zmAbJ345NofdEFHoyYSIaI8GgXAPYxxXYLTKUWOtyxHyvnTXGM+sQdrW8cN9eS zT/8/pR7l5BLuBIoWGmSx8KHkAJzreVimD8Dx/Jqot3SYINn6AscmRJmB9Qxjkg= =Addf -----END PGP SIGNATURE----- --7SCxakRAKae2I5rAGeWvX2nofqvbplKPc--