Subject: Re: ksh and ssh questions
To: Big Bird <geary@acm.org>
From: Allen Briggs <briggs@wasabisystems.com>
List: port-mac68k
Date: 02/14/2002 15:21:09
On Thu, Feb 14, 2002 at 01:49:55PM -0600, Big Bird wrote:
>  0 1 11:40am> /usr/bin/man ksh
> sh
> [: interactive: unexpected operator

That's your pager being invoked.  PAGER is invoked with system(3), which
uses _PATH_BSHELL, which is "/bin/sh".

> Why is the bourne shell being started when I run some programs, such
> as man? (But other programs, such as vi don't start a shell).

Probably all the programs starting sh are using system(3) or homegrown
variants.

> Why is sh calling my .env? (Or is the echo $0 lying?)

See the first page of `man sh`.

-allen

-- 
 Allen Briggs                     briggs@wasabisystems.com
 http://www.wasabisystems.com/    Quality NetBSD CDs, Sales, Support, Service
NetBSD development for Alpha, ARM, M68K, MIPS, PowerPC, SuperH, XScale, etc...