[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] a calling interface for shell scripts in groff
From: |
Colin Watson |
Subject: |
Re: [Groff] a calling interface for shell scripts in groff |
Date: |
Sun, 14 Jul 2002 21:11:02 +0100 |
User-agent: |
Mutt/1.3.28i |
On Sun, Jul 14, 2002 at 05:35:55PM +0200, Bernd Warken wrote:
> On Sun, Jul 14, 2002 at 12:01:36PM +0100, Ralph Corderoy wrote:
> > Besides, the ash man page suggests it's POSIX plus a few Berkeley
> > extensions.
>
> The documentation is quite wrong at some places. My experience is
> that a shell script that runs with `ash' will run on any Bourne type
> of shell.
Sure. That's an excellent argument for testing your own scripts using it
(perhaps symlinking /bin/sh to ash locally, if your OS supports that),
but less so for having everyone else use it.
There are other shells which are small, fast, and compatible - pdksh
comes to mind - and I don't think there's any particular reason to treat
ash specially. Good shell scripts should allow the sysadmin to use
whichever he/she chooses, and the simplest way to do that is to trust
that /bin/sh will be whatever's locally considered best.
--
Colin Watson address@hidden
Re: [Groff] a calling interface for shell scripts in groff, Werner LEMBERG, 2002/07/14