[96487] in RedHat Linux List
Re: BASH scripting question
daemon@ATHENA.MIT.EDU (John H Darrah)
Tue Oct 27 13:04:44 1998
Date: Tue, 27 Oct 1998 08:40:00 -0800 (PST)
From: John H Darrah <jhd@giddens.com>
To: RedHat List <redhat-list@redhat.com>
In-Reply-To: <19981027165402-cameron-1-22980@sid.research.canon.com.au>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On Tue, 27 Oct 1998, Cameron Simpson wrote:
> On 24 Oct 1998, in message <Pine.LNX.4.05.9810231409110.5138-100000@mallard.itep.ru>
>
> Alexei Nefediev <nefediev@heron.itep.ru> wrote:
>
> > what should I do to learn my own script to
> > understand switches and to report about its
> > usage when started without arguments?
>
> Step 1: Never write for "bash" (or the other
> dialects like zsh ksh etc) if you can
> write for plain vanilla Bourne shell (sh).
>
WRONG!! This is just another one of these
religious statements that confuse many newcomers.
You write in whatever shell language you need to
do the job, using *ALL* the features that make the
task easy to write and maintain.
What if you are using csh...? Are you still
supposed to make it compatible with sh...? Bash is
no different than awk, perl, sed, csh, python
which are all scripting languages.
If you are a software developer that *Needs* to be
compatible with many different Unix systems, then
it would be a good idea, but *Not* absolutely
necessary.
For localized tasks you should use *All* the
features of the shell of your choice and don't
listen to the religious crap.
--
John Darrah (u05192) | Dept: N/C Programming
Giddens Industries | Ph: (425) 353-0405 #229
PO box 3190 | Ph: (206) 767-4212 #229
Everett WA 98203 | Fx: (206) 764-9639
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.