public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* missing 'which' documentation
@ 2007-12-13  3:55 Lee D. Rothstein
  2007-12-13  7:34 ` Marco Atzeri
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Lee D. Rothstein @ 2007-12-13  3:55 UTC (permalink / raw)
  To: Cygwin

Does anybody know or care that there is an option --
'-a' -- for 'which' -- that is not documented on
Cygwin. That is, there is no internal help, and there
is no 'man' or 'info' page provided by Cygwin install.
If anybody wants this, I will find or create the 'man'
page and make it cover '-a', and then do *what* with
it? Pointers appreciated!

To see the value of this option try (assuming you have MS
executable directories in your path):

  which ping              vs         which -a ping
  which find              vs         which -a find

and

  which dir               ==         which -a dir

i.e., 'dir' is an internal of 'cmd.exe'

Lee Rothstein



--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: missing 'which' documentation
  2007-12-13  3:55 missing 'which' documentation Lee D. Rothstein
@ 2007-12-13  7:34 ` Marco Atzeri
  2007-12-13 15:03   ` Jeff
  2007-12-13  8:24 ` Corinna Vinschen
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 12+ messages in thread
From: Marco Atzeri @ 2007-12-13  7:34 UTC (permalink / raw)
  To: Cygwin


--- "Lee D. Rothstein" <lee@veritech.com> ha scritto:

> Does anybody know or care that there is an option --
> '-a' -- for 'which' -- that is not documented on
> Cygwin. That is, there is no internal help, and
> there
> is no 'man' or 'info' page provided by Cygwin
> install.

my "info which" says

`--all'
`-a'
     Print all matching executables in `PATH', not
just the first.

but I am using the 2.16 version of cygwinports :-)


Regards
Marco





      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html

--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: missing 'which' documentation
  2007-12-13  3:55 missing 'which' documentation Lee D. Rothstein
  2007-12-13  7:34 ` Marco Atzeri
@ 2007-12-13  8:24 ` Corinna Vinschen
  2007-12-13 17:03   ` Jeff
  2007-12-13 14:29 ` Frederich, Eric P21322
  2007-12-23  1:55 ` phil curb
  3 siblings, 1 reply; 12+ messages in thread
From: Corinna Vinschen @ 2007-12-13  8:24 UTC (permalink / raw)
  To: cygwin

On Dec 12 22:55, Lee D. Rothstein wrote:
> Does anybody know or care that there is an option --
> '-a' -- for 'which' -- that is not documented on
> Cygwin. That is, there is no internal help, and there
> is no 'man' or 'info' page provided by Cygwin install.
> If anybody wants this, I will find or create the 'man'
> page and make it cover '-a', and then do *what* with
> it? Pointers appreciated!

Cygwin's which is quite an old one written by me.  The best way to move
forward would probably be to remove it from the Cygwin distro in favor
of the which used in several (all?) Linux distros:

  http://www.xs4all.nl/~carlo17/which/

Anybody volunteering to become which maintainer for Cygwin?
See http://cygwin.com/setup.html


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: missing 'which' documentation
  2007-12-13  3:55 missing 'which' documentation Lee D. Rothstein
  2007-12-13  7:34 ` Marco Atzeri
  2007-12-13  8:24 ` Corinna Vinschen
@ 2007-12-13 14:29 ` Frederich, Eric P21322
  2007-12-23  1:55 ` phil curb
  3 siblings, 0 replies; 12+ messages in thread
From: Frederich, Eric P21322 @ 2007-12-13 14:29 UTC (permalink / raw)
  To: Cygwin

Ha.  I just saw this subject and though "man which", then I got hungry.

> -----Original Message-----
> From: cygwin-owner@cygwin.com 
> [mailto:cygwin-owner@cygwin.com] On Behalf Of Lee D. Rothstein
> Sent: Wednesday, December 12, 2007 10:55 PM
> To: Cygwin
> Subject: missing 'which' documentation
> 
> Does anybody know or care that there is an option --
> '-a' -- for 'which' -- that is not documented on
> Cygwin. That is, there is no internal help, and there
> is no 'man' or 'info' page provided by Cygwin install.
> If anybody wants this, I will find or create the 'man'
> page and make it cover '-a', and then do *what* with
> it? Pointers appreciated!
> 
> To see the value of this option try (assuming you have MS
> executable directories in your path):
> 
>   which ping              vs         which -a ping
>   which find              vs         which -a find
> 
> and
> 
>   which dir               ==         which -a dir
> 
> i.e., 'dir' is an internal of 'cmd.exe'
> 
> Lee Rothstein
> 

--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: missing 'which' documentation
  2007-12-13  7:34 ` Marco Atzeri
@ 2007-12-13 15:03   ` Jeff
  2007-12-13 15:47     ` Marco Atzeri
  2007-12-13 23:50     ` Brian Dessent
  0 siblings, 2 replies; 12+ messages in thread
From: Jeff @ 2007-12-13 15:03 UTC (permalink / raw)
  To: cygwin

As seen from lists.cygwin, on
Thu, 13 Dec 2007 08:34:48 +0100 (CET),
Marco Atzeri <marco_atzeri@yahoo.it> wrote:

>
>--- "Lee D. Rothstein" <lee@veritech.com> ha scritto:
>
>> Does anybody know or care that there is an option --
>> '-a' -- for 'which' -- that is not documented on
>> Cygwin. That is, there is no internal help, and
>> there
>> is no 'man' or 'info' page provided by Cygwin
>> install.
>
>my "info which" says
>
>`--all'
>`-a'
>     Print all matching executables in `PATH', not
>just the first.
>
>but I am using the 2.16 version of cygwinports :-)

Heh heh... Care to write a little more about that? I didn't see a base
package (other than the cygport packager tool) or installation with
that version number, but was delighted to see a port of glib there.
That will be very useful for those apps that expect glib and won't
build under newlib.

--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: missing 'which' documentation
  2007-12-13 15:03   ` Jeff
@ 2007-12-13 15:47     ` Marco Atzeri
  2007-12-13 18:38       ` Jeff
  2007-12-13 23:50     ` Brian Dessent
  1 sibling, 1 reply; 12+ messages in thread
From: Marco Atzeri @ 2007-12-13 15:47 UTC (permalink / raw)
  To: cygwin


--- Jeff  ha scritto:

> As seen from lists.cygwin, on
> Thu, 13 Dec 2007 08:34:48 +0100 (CET),
> Marco Atzeri  wrote:
> 
> >
> >--- "Lee D. Rothstein"  ha
> scritto:
> >
> >> Does anybody know or care that there is an option
> --
> >> '-a' -- for 'which' -- that is not documented on
> >> Cygwin. That is, there is no internal help, and
> >> there
> >> is no 'man' or 'info' page provided by Cygwin
> >> install.
> >
> >my "info which" says
> >
> >`--all'
> >`-a'
> >     Print all matching executables in `PATH', not
> >just the first.
> >
> >but I am using the 2.16 version of cygwinports :-)
> 
> Heh heh... Care to write a little more about that? I
> didn't see a base

http://cygwinports.dotsrc.org/




      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html

--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: missing 'which' documentation
  2007-12-13  8:24 ` Corinna Vinschen
@ 2007-12-13 17:03   ` Jeff
  2007-12-13 17:17     ` Corinna Vinschen
  0 siblings, 1 reply; 12+ messages in thread
From: Jeff @ 2007-12-13 17:03 UTC (permalink / raw)
  To: cygwin

As seen from lists.cygwin, on
Thu, 13 Dec 2007 09:24:29 +0100,
Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:

>On Dec 12 22:55, Lee D. Rothstein wrote:
>> Does anybody know or care that there is an option --
>> '-a' -- for 'which' -- that is not documented on
>> Cygwin. That is, there is no internal help, and there
>> is no 'man' or 'info' page provided by Cygwin install.
>> If anybody wants this, I will find or create the 'man'
>> page and make it cover '-a', and then do *what* with
>> it? Pointers appreciated!
>
>Cygwin's which is quite an old one written by me.  The best way to move
>forward would probably be to remove it from the Cygwin distro in favor
>of the which used in several (all?) Linux distros:

I recall (perhaps even correctly :) ) that SunOS had a "where" command
with the functionality of your 'which -a'. The idea was that "where"
would show you all scripts and executables of a given name in your
command path (ie. "where" they are), while "which" would tell you
*which* one of them would execute at the shell prompt. So unusual, to
see a pair of utilities whose names were so nearly self-explanatory. :)
Is the Linux "which" like yours (ie. 'which -a' == SunOS 'where')?

-- 
"Sorry, my life is still in beta, and nowhere near stable enough for a
release."

--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: missing 'which' documentation
  2007-12-13 17:03   ` Jeff
@ 2007-12-13 17:17     ` Corinna Vinschen
  0 siblings, 0 replies; 12+ messages in thread
From: Corinna Vinschen @ 2007-12-13 17:17 UTC (permalink / raw)
  To: cygwin

On Dec 13 07:31, Jeff wrote:
> Corinna Vinschen <corinna-cygwin@cygwin.com> wrote:
> >Cygwin's which is quite an old one written by me.  The best way to move
> >forward would probably be to remove it from the Cygwin distro in favor
> >of the which used in several (all?) Linux distros:
> 
> I recall (perhaps even correctly :) ) that SunOS had a "where" command
> with the functionality of your 'which -a'. [...]
> Is the Linux "which" like yours (ie. 'which -a' == SunOS 'where')?

Yes.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: missing 'which' documentation
  2007-12-13 15:47     ` Marco Atzeri
@ 2007-12-13 18:38       ` Jeff
  0 siblings, 0 replies; 12+ messages in thread
From: Jeff @ 2007-12-13 18:38 UTC (permalink / raw)
  To: cygwin

Marco Atzeri wrote:
>> >but I am using the 2.16 version of cygwinports :-)

Jeff wrote:
>Heh heh... Care to write a little more about that? I didn't see a base
>package (other than the cygport packager tool) or installation with
>that version number, but was delighted to see a port of glib there.
>That will be very useful for those apps that expect glib and won't
>build under newlib.

Marco Atzeri wrote:
>http://cygwinports.dotsrc.org/

Uhm... thanks! :) Guess I forgot to mention it, but that is where I saw
glib, but didn't see a base package (other than the cygport tool)-- I
do make some effort to research things first before posting questions,
and this site turned up near the top of a Google search. I also saw
their pages on http://sourceforge.net/projects/cygwin-ports/ but
searching the two (very low volume) mailing lists for "2.16" turned up
nothing useful. Finally, I added ftp://sunsite.dk/projects/cygwinports
as a user URL to setup.exe as suggested on the cygwinports home page
(nice of them to maintain a setup.ini file so that their users don't
have to figure out package dependencies) and looked at the packages
listed for install, but didn't see anything in the "base" category that
is any different from what standard Cygwin mirrors show, even with
"Exp"(erimental versions) selected. So I am still curious to know about
this cygwinports package that stands at ver. 2.16, and seems to have
documentation not included in the standard Cygwin packages.

Jeff

-- 
"Sorry, my life is still in beta, and nowhere near stable enough for a
release."

--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: missing 'which' documentation
  2007-12-13 15:03   ` Jeff
  2007-12-13 15:47     ` Marco Atzeri
@ 2007-12-13 23:50     ` Brian Dessent
  2007-12-14 13:04       ` Jeff
  1 sibling, 1 reply; 12+ messages in thread
From: Brian Dessent @ 2007-12-13 23:50 UTC (permalink / raw)
  To: cygwin

Jeff wrote:

> that version number, but was delighted to see a port of glib there.
> That will be very useful for those apps that expect glib and won't
> build under newlib.

glib != glibc.  And I don't see why this is specific to Cygwin Ports,
because the main Cygwin distro has glib and glib2 as well.  But again
these are *not* in any way related to glibc.

Brian

--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: missing 'which' documentation
  2007-12-13 23:50     ` Brian Dessent
@ 2007-12-14 13:04       ` Jeff
  0 siblings, 0 replies; 12+ messages in thread
From: Jeff @ 2007-12-14 13:04 UTC (permalink / raw)
  To: cygwin

As seen from lists.cygwin, on
Thu, 13 Dec 2007 15:51:46 -0800, Brian Dessent wrote:

>glib != glibc.

Yeah, I realized my error (faulty memory) just an hour or two ago when
I ran setup again and read the short package descriptions: glib is part
of GNOME, and Cygwin Ports doesn't have a port of glibc. :(

>And I don't see why this is specific to Cygwin Ports, because the main
>Cygwin distro has glib and glib2 as well.

It's not specific to CP-- they host the standard Cygwin distro as well,
which is convenient when a CP package has dependencies.

>But again these are *not* in any way related to glibc.

Yep, this error brought to you by an arguably POSIX-noncompliant
environment running on 52-year-old wetware, which is consequently
subject to bit rot from time to time...

-- 
"Sorry, my life is still in beta, and nowhere near stable enough for a
release."

--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: missing 'which' documentation
  2007-12-13  3:55 missing 'which' documentation Lee D. Rothstein
                   ` (2 preceding siblings ...)
  2007-12-13 14:29 ` Frederich, Eric P21322
@ 2007-12-23  1:55 ` phil curb
  3 siblings, 0 replies; 12+ messages in thread
From: phil curb @ 2007-12-23  1:55 UTC (permalink / raw)
  To: cygwin


--- "Lee D. Rothstein" <lee@veritech.com> wrote:

> Does anybody know or care that there is an option --
> '-a' -- for 'which' -- that is not documented on
> Cygwin. That is, there is no internal help, and
> there
> is no 'man' or 'info' page provided by Cygwin
> install.
> If anybody wants this, I will find or create the
> 'man'
> page and make it cover '-a', and then do *what* with
> it? Pointers appreciated!
> 
> To see the value of this option try (assuming you
> have MS
> executable directories in your path):
> 
>   which ping              vs         which -a ping
>   which find              vs         which -a find
> 
> and
> 
>   which dir               ==         which -a dir
> 
> i.e., 'dir' is an internal of 'cmd.exe'
> 
> Lee Rothstein

would be good, though I realised that for programs,
like squid (whose cygwin port does not even seem to
work, but there is a windows port).. One is expected
to go online for the documentation!  So I consider an
internet connection somewhat mandatory -
unfortunately.

I have typed "man which", at google. I did notice that
cygwin had no man or info page for which.

on a related note- i also check
/usr/share/doc , since programs can put documentation
there, and furthermore, that documentation is
different, not conforming to the strict man page
format.

I guess there is no excuse for a simple thing like a
man page to not be installed - available offline. Even
a large man page is small enough, and this is a small
man page.









     
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there
knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 


      ___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/

--
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/

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-12-22 23:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-13  3:55 missing 'which' documentation Lee D. Rothstein
2007-12-13  7:34 ` Marco Atzeri
2007-12-13 15:03   ` Jeff
2007-12-13 15:47     ` Marco Atzeri
2007-12-13 18:38       ` Jeff
2007-12-13 23:50     ` Brian Dessent
2007-12-14 13:04       ` Jeff
2007-12-13  8:24 ` Corinna Vinschen
2007-12-13 17:03   ` Jeff
2007-12-13 17:17     ` Corinna Vinschen
2007-12-13 14:29 ` Frederich, Eric P21322
2007-12-23  1:55 ` phil curb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).