Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jul 2007 23:22:39 -0600
From:      Chad Perrin <perrin@apotheon.com>
To:        freebsd-questions@freebsd.org
Cc:        freebsd@celestial.com
Subject:   Re: The worst error message in history belongs to... BIND9!
Message-ID:  <20070704052239.GA40018@demeter.hydra>
In-Reply-To: <20070704042903.GB3594@ayn.mi.celestial.com>
References:  <200707031344.l63DiEbo098703@dc.cis.okstate.edu> <20070703163610.GA6012@ayn.mi.celestial.com> <468b072c.U1AQhNvKe3aLmLhT%perryh@pluto.rain.com> <20070704042903.GB3594@ayn.mi.celestial.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 03, 2007 at 09:29:03PM -0700, Bill Campbell wrote:
> On Tue, Jul 03, 2007, perryh@pluto.rain.com wrote:
> >> >> This is actually just the difference between sh and bash ...
> >> >
> >> >differences in, say, arithmetic handling and loops can sometimes
> >> >mean rewriting parts of shell scripts depending on whether it is
> >> >going to run in BSD or Linux.
> >>
> >> That's a major argument for doing things in python or perl as
> >> they are consistent across all platforms ...
> >
> >If one is going to require the installation of something that may
> >not be part of a base system, that something might as well be bash :)
> 
> One of the reasons I started using perl almost 20 years ago was
> that it was cleaner and more consistent than tying a bunch of
> utilities together with the shell (not to mention only having to
> master one type of regular expressions :-).
> 
> I now use python for the vast majority of my development work
> instead of perl as I find it much cleaner with better object
> oriented features.

I'm of a similar mind, except that for OOP stuff I prefer Ruby, and for
non-OOP stuff I still generally use Perl.  Python doesn't really whet my
whistle, so to speak.


> 
> When I write shell scripts, I use a very limited set of features
> which are /bin/sh compatible.  As soon as I start having to do
> anything much more than run a program against a list of files, I
> switch to python.

  $language =~ s/python/Perl/
Otherwise, ditto what you said.  Much like PHP, I find that shell
languages as scripting syntaxes don't really scale well in terms of
maintainability.  YMMV, of course.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Baltasar Gracian: "A wise man gets more from his enemies than a fool from
his friends."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070704052239.GA40018>