X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; q=dns; s=default; b=HrfCMY juyQB76oS8sGKqLsECocmdbz0FZH7n1BJBz8xStab32lah1RWHUTfRqgxSUjvTkT BSAM/US7HoOtUG3oJYmvt2olY3HKcfIwwuOoF7xNbs99pz180wT2OKPfBxbxMjOv xTYe8kEZ0ATxR1MIZE95t082/OzB6SAN8H6Iw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type; s=default; bh=KlFbGua3Hwap dBHIkvC/b1E6VDk=; b=XQBgbNsLs6Q3+0pC8e7MPeMOsYPI0I2JcGQlhK/chQKK NNsDlCQEaNk7sTaBXImJfyMPZBqj2mVFu4FFHC8JSQpp9VN+ZH6ZH9wSRVev4+qt fpMflIULOXsAlz/RN+mX6OAtTWoRZWsqwmxDYxaiLVYWpMpb/rz/wRk38Z2juS8= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Message-ID: <53A0944A.8080403@redhat.com> Date: Tue, 17 Jun 2014 13:17:30 -0600 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 AT cygwin DOT com Subject: Re: Change PS1 when running as administrator References: <1402994703 DOT 51470 DOT YahooMailNeo AT web172206 DOT mail DOT ir2 DOT yahoo DOT com> <53A06B0D DOT 9050806 AT raelity DOT com> <1195111819 DOT 20140617203419 AT yandex DOT ru> <53A078BD DOT 9020402 AT raelity DOT 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 --EF838DjVDEIKrq81L3aE3vKgmLcGFl01d Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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" -----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--