X-Spam-Check-By: sourceware.org Date: Fri, 17 Mar 2006 17:51:08 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Dave Korn cc: cygwin AT cygwin DOT com Subject: RE: Find tool contained in unknown pkg In-Reply-To: <00cb01c64a04$caca7bb0$a501a8c0@CAM.ARTIMI.COM> Message-ID: References: <00cb01c64a04$caca7bb0$a501a8c0 AT CAM DOT ARTIMI DOT COM> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 On Fri, 17 Mar 2006, Dave Korn wrote: > On 17 March 2006 20:28, Harry Putnam wrote: > > > I've just installed a very minimal cygwin. I noticed the `id' tool is > > not present and looking on the packages page I don't see it listed > > separately so I'm guessing it is contained in a package whos name may > > not reflect its presence. > > > > Anyone know which package that might be? > > http://cygwin.com/packages > > Since 'id' on its own might give you too many matches, it's worth > mentioning the handy trick that (this being 'doze not linux really) the > full name of the program is of course 'id.exe'. > > http://cygwin.com/cgi-bin2/package-grep.cgi?grep=id.exe > > That narrows it down sufficiently... Ah, but this will not match scripts or symlinks. Since most executables live in something that ends in "bin", and the package search page supports full perl regular expressions, you can do http://cygwin.com/cgi-bin2/package-grep.cgi?grep=bin%2Fid%5Cb (which corresponds to a search string "bin/id\b", i.e., a program named "id" with no more letters after that, in a directory that ends in "bin"). In case of "id" the results are identical, but if you try your approach with, for example, "vi", you'll find that it doesn't work. HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte." "But no -- you are no fool; you call yourself a fool, there's proof enough in that!" -- Rostand, "Cyrano de Bergerac" -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/