Jordan Hubbard <[EMAIL PROTECTED]> wrote:
 > From: Oliver Fromme <[EMAIL PROTECTED]>
 > > Not all users use /bin/sh.  Scripts needn't be written
 > > in /bin/sh ...
 > Actually, just to jump in and correct this, scripts *should* be
 > written in /bin/sh.

It depends.

I often happen to write zsh scripts, but only if I'm sure
that they don't really have to be portable, and that I am
the only one who will ever use them.  When I was young, I
also wrote a few tcsh scripts (*ouch*), but I discontinued
doing that long ago.  :-)

I agree with you 100% that portable scripts should use
/bin/sh and nothing else.

And to come back on topic:  Portable scripts also should
_not_ assume that there are no limits on the length of
shell commands.  On the other hand, portable scripts can
legitimately assume that xargs supports -i and -I, which
ours doesn't.


PS:  FWIW, I also write a lot of awk scripts, which is my
favourite scripting language, but this is really getting
off-topic ...

Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"All that we see or seem is just a dream within a dream" (E. A. Poe)

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to