From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25788 invoked by alias); 17 Jun 2014 19:17:33 -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 25777 invoked by uid 89); 17 Jun 2014 19:17:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 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 (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 17 Jun 2014 19:17:32 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s5HJHUSD002307 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 17 Jun 2014 15:17:30 -0400 Received: from [10.3.113.140] (ovpn-113-140.phx2.redhat.com [10.3.113.140]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s5HJHUo3029457 for ; Tue, 17 Jun 2014 15:17:30 -0400 Message-ID: <53A0944A.8080403@redhat.com> Date: Tue, 17 Jun 2014 19:17:00 -0000 From: Eric Blake User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: Change PS1 when running as administrator References: <1402994703.51470.YahooMailNeo@web172206.mail.ir2.yahoo.com> <53A06B0D.9050806@raelity.com> <1195111819.20140617203419@yandex.ru> <53A078BD.9020402@raelity.com> In-Reply-To: <53A078BD.9020402@raelity.com> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="EF838DjVDEIKrq81L3aE3vKgmLcGFl01d" X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00241.txt.bz2 --EF838DjVDEIKrq81L3aE3vKgmLcGFl01d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-length: 820 On 06/17/2014 11:19 AM, Ernie Rael wrote: > On 6/17/2014 9:34 AM, Andrey Repin wrote: >=20 >>> [[ $(id -G) =3D~ \b544\b ]] >>> was suggested (the suggestion used symbolic name instead of a number and >>> didn't use word boundary). Seems like word boundary is needed, but I >>> couldn't get this to work. Are the regex boundary matchers not >>> supported by bash =3D~ operator? >> I don't think bash equivalent of test implements Perl RE. >> Neither the base test implementation, to that extent. >=20 > I thought, perhaps incorrectly, that \b has been around forever and is > posix. Forever in Linux, but not required by POSIX and not present in BSD (from which Cygwin inherits its regex implementation). --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --EF838DjVDEIKrq81L3aE3vKgmLcGFl01d 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 v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJToJRKAAoJEKeha0olJ0NqXEYH/i+d+lpIEtvXmE3luBioJDwc QgQOigTIp1IMVERk55e/J86+3uvFQJjJlzGOEzjiy8goF1hIjSuQNZNVLwDDy8yj TzQKGqdBT79uhssu4H2dnJHdRwkNK9ecifd8/Cv96nAfd2W20S6Zz2VB/Nr1LeQ5 PmLP34BqEzI102SacCLtmFp5hHg7+72slT1I3wKwK+iNJIkOQd1ZAERHUIgglAsY +88kgxEeVJnZKhohWXKFvmTShhgsI4nCGhE4++NqDDHeBgsCw5OrHl3uW6YB51JC q6MWd6Gpx6IrNF8JrmIW/IB0/zONQDFmNyCwV+2SnT3cdYTgoqjftJ5p3Ohedz0= =4IB1 -----END PGP SIGNATURE----- --EF838DjVDEIKrq81L3aE3vKgmLcGFl01d--