Subject: Re: PR's about which(1)
To: None <current-users@NetBSD.org>
From: Courtney R. Spencer <cspencer@mindspring.com>
List: current-users
Date: 04/01/2004 14:02:19
On Thu Apr 01, 2004 at 09:53:34AM -0800, Conrad T. Pino wrote:
> 
> 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

Solaris sparc has type builtin though:

SunOS XXXX 5.8 Generic_108528-26 sun4u sparc SUNW,Ultra-80

% /bin/csh
% type type
type is a shell builtin
% type which
which is /bin/which

% /bin/ksh
% type type
type is a shell builtin
% type which
which is /bin/which


% /bin/sh
% type type
type is a shell builtin
% type which
which is /bin/which


% /bin/zsh
% type type
type is a shell builtin
% type which
which is a shell builtin



It still has /bin/type and /bin/which included. 

-- 
Courtney