Subject: RE: PR's about which(1)
To: Christos Zoulas <christos@zoulas.com>
From: Conrad T. Pino <NetBSD-Current@Pino.com>
List: current-users
Date: 04/01/2004 09:53:34
> From: Rick Kelly
> 
> Christos Zoulas said:
> 
> >| Name one that doesn't. :-P
> >| 
> >| Seriously, pkgsrc is portable to other platforms, so if any package
> >| depends on NetBSD's "/usr/bin/which", it's already broken.
> >
> >Specially considering that it used to be a /usr/ucb/which...
> 
> rattler> uname -a
> SunOS rattler 5.8 Generic_108528-23 sun4m sparc SUNW,SPARCstation-4
> rattler> which which 
> /usr/bin/which
> rattler> file /usr/bin/which
> /usr/bin/which: executable /usr/bin/csh script

Solaris 8 SPARC & Intel editions seem similar:

/export/home/cvsusr:$ uname -a
SunOS pro720 5.8 Generic_108529-17 i86pc i386 i86pc

/export/home/cvsusr:$ ksh
/export/home/cvsusr:$ which which
/usr/bin/which
/export/home/cvsusr:$ file /usr/bin/which
/usr/bin/which: executable /usr/bin/csh script
/export/home/cvsusr:$ exit

/export/home/cvsusr:$ csh
pro720% which which
/usr/bin/which
pro720% exit
pro720%

/export/home/cvsusr:$ sh
${PWD}:$ which which
/usr/bin/which
${PWD}:$ exit

/export/home/cvsusr:$ bash
/export/home/cvsusr:$ which which
/usr/bin/which
/export/home/cvsusr:$ exit

Conrad Pino