This is the mail archive of the
mailing list for the Cygwin project.
Re: [PATCH] cygcheck parsing of id output
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 11 Jul 2003 10:51:03 -0400 (EDT)
- Subject: Re: [PATCH] cygcheck parsing of id output
- Reply-to: cygwin-patches at cygwin dot com
On Thu, 1 May 2003, Igor Pechtchanski wrote:
> The attached patch allows cygcheck to handle spaces, commas, and
> *matching* parentheses in user and group names in the "id" output.
> There's some code sharing in parsing the user and group names, but that
> could be refactored in a later cleanup.
> One issue that also came up is the old "run a cygwin program from a
> non-cygwin program from an xterm" issue -- when running cygcheck from an
> xterm, id pops up a separate window and cygcheck gets no output from id...
> I'm not sure how to fix this. One thing that comes to mind is making
> cygcheck aware of Cygwin ptys, but I don't know how hard that would be...
> 2003-05-01 Igor Pechtchanski <email@example.com>
> * cygcheck.cc (pretty_id): Parse id output without
> using strtok.
> (match_paren): New static function.
|\ _,,,---,,_ firstname.lastname@example.org
ZZZzz /,`.-'`' -. ;-;;,_ email@example.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton