delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/06/17/15:17:48

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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <eblake AT redhat DOT com>
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
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--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019