In a message dated: Mon, 19 Jun 2000 12:03:56 EDT
Benjamin Scott said:

>On Mon, 19 Jun 2000, Paul Lussier wrote:
>>> (Of course, bash's extensions, which I make liberal use of, aren't exactly
>>> "portable", either.)
>> 
>> That's ksh is for :)
>
>  Two questions:
>
>  Is ksh required by POSIX?

I have no idea.  But when did conformance to a standard ever matter ;)

>  Is ksh generally implemented by all the various Unixes out there (both
>commercial and free)?  (POSIX conformance varies.)

Yes.  You can get ksh for the older BSD variants of SunOS et al.  I believe 
Ultrix shipped with it, HP-UX has always had it, as well as AIX (AIX actually 
had root's shell set to /bin/ksh!).  All the newer commercial versions ship 
with ksh, and all the free Unix versions have pdksh, which is shipped with all 
the Linux distro's I know of (though not necessarilly installed by default,
which makes no sense to me, since RH does install ash by default.  Yeah, huge 
user base there! ;)

>> Of course all shell scripting should be done in either pure /bin/sh ...
>
>  You just used "pure" and a Unix feature in the same sentence.  Isn't that an
>oxymoron?  :-)

Well, okay, since the original /bin/sh wasn't Bourne Shell, I guess you're 
right :)

>> ... or perl ...
>
>  I wouldn't call Perl a "shell scripting language".  It's a tremendously
>useful tool, but not something that should be used for critical system
>functions.  In particular, I really hate people who put Perl scripts in
>/etc/init.d (or local equivalent).  Why do people thing /usr will always be
>there?

Well, you can install perl anywhere you want.  I agree with you that init 
scripts should not be written in perl (unless the system has perl installed in 
/bin, /lib, etc.)  which is why I mentioned "pure" /bin/sh compatibility (as 
opposed to bash)

>  While I'm ranting (who me?), I really hate APC's PowerChute for Linux
>software, which requires libstdc++ to send shutdown calls to the UPS.  That
>don't work too well when it is called at the end of rc.halt and /usr is
>already unmounted.  :-(

Wow!  There's a brilliant design decision.  Don't tell RH about it or they'll 
require a GNOME install dependancy too :)
-- 
Seeya,
Paul
----
        "I always explain our company via interpretive dance.
             I meet lots of interesting people that way."
                                          Niall Kavanagh, 10 April, 2000

         If you're not having fun, you're not doing it right!



**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to