[ITA] which: GNU which -- finds executables in the path

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Dec 20 10:42:00 GMT 2007


On Dec 19 13:58, David Rothenberger wrote:
> Corinna suggested[1] that the Cygwin which be replaced with the GNU
> version and asked for a volunteer maintainer. I'm willing to do
> this.

Cool, thank you!

>   http://mysite.verizon.net/res00a7j/cygwin/which/setup.hint \
>   http://mysite.verizon.net/res00a7j/cygwin/which/which-2.18-1-src.tar.bz2 \
>   http://mysite.verizon.net/res00a7j/cygwin/which/which-2.18-1.tar.bz2

Packaging looks good to me, but there's something strange:

  $ ./which -v
  GNU which v2.18, Copyright (C) 1999 - 2007 Carlo Wood.
  [...]
  $ ./which ls
  /usr/bin/ls
  $ ./which regedit
  ./which: no regedit in (/home/corinna/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/usr/bin)
  $ ./which regedit.exe
  ./which: no regedit.exe in (/home/corinna/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/usr/bin)

Old which:

  $ which regedit
  /cygdrive/c/Windows/regedit
  $ which regedit.exe
  /cygdrive/c/Windows/regedit.exe

Can you look into this?


Thanks,
Corinna

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



More information about the Cygwin-apps mailing list