delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/06/11/12:34:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-10.3 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4FD61BE4.4070604@redhat.com>
Date: Mon, 11 Jun 2012 10:25:08 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: UNIX groups in CYGWIN
References: <A9D8BF3D8A74DF4A925FB541C0F39D2A16994BEDF2 AT NIHMLBX15 DOT nih DOT gov>
In-Reply-To: <A9D8BF3D8A74DF4A925FB541C0F39D2A16994BEDF2@NIHMLBX15.nih.gov>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
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

--------------enig6CDE559DADC6CE623206824F
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 06/11/2012 10:13 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:

> 2. Since Windows group names can embed spaces, the output of the "groups"=
 shell command

'groups' is no longer a shell command, but an executable, for several
coreutils releases now.

>    is unparsable in CYGWIN (scripting becomes problematic), because the s=
pace is used both
>    in the group names (as obtained from Windows) and to delimit the group=
 names in the groups'
>    output:

Such a proposal should be made to upstream coreutils, as it could
possibly be of benefit to more platforms than just cygwin.

>     Perhaps CYGWIN could have used a tab to separate the group names?

What's to say that 'TAB' won't be valid in a group name?

>     Or list each group on an individual line?

An option to request alternative output format (whether that be
line-separated, or even NUL-byte separated) might indeed be more palatable.

--=20
Eric Blake   eblake AT redhat DOT com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enig6CDE559DADC6CE623206824F
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.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJP1hvkAAoJEKeha0olJ0NqWo4H/0IK9JFpGMFP1mkIBfAV2QVL
XnLm149Jwl4xyK9uxN3HypX0E53P3OHGQUaWm/WLGXt0otwZoYYj8iCPFY643zba
ImRsB3ygXLGaaHGUDrg+tOGzdYfVO3BMiRkpYTcHC9rkXptVrtgXBAcYsIzFpu6R
zd59HWfRwHhmhFwpI2Pdt/36YMcQpjmoAIitxC5MDXasFN6uha5cutXt232a/Jmz
0rZ9LQ5KssNORmstMqSDfa7AX2J+Qvo7wK1dKhyMVVUPMjHG0tg8zyMwV+P2kp2Q
swmacIwmHIjRypOATjohbAFccDiSjnVemdQpPfH5F7j6LW9fJlFlecIAEK83RAE=
=ifzA
-----END PGP SIGNATURE-----

--------------enig6CDE559DADC6CE623206824F--

- Raw text -


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