Subject: Re: SunOS.mk default shell for SH
To: Hauke Fath <hf@spg.tu-darmstadt.de>
From: Todd Vierling <tv@duh.org>
List: tech-pkg
Date: 03/04/2005 12:04:14
On Fri, 4 Mar 2005, Hauke Fath wrote:
> > > > I looked at the other platform mk files and using /bin/ksh is the
> > > > exception -- most seem to be using /bin/sh -- which is probably
> > > > bash on BSD and Linux systems, and maybe some UNIX systems too.
> > I'm not sure I understand. If the demand for ksh is so strong,
> > why do most configs in mk/platform have: SH?=/bin/sh ?
>
> Because /bin/sh, the bourne ("posix") shell, is the default for shell scripts.
> Unless the platform's bourne shell is so old...
>
> Have you tried out /usr/xpg4/bin/sh as the shell on Solaris?
"ls -l /usr/xpg4/bin/sh" and you may be surprised.
(Hint: It's a symlink to a shell in /bin other than /bin/sh. 8-)
--
-- Todd Vierling <tv@duh.org> <tv@pobox.com>