Subject: Re: Unixism, pipes and pkgsrc
To: Jordan Gordeev <jgordeev@dir.bg>
From: =?ISO-8859-1?Q?Andr=E9?= Wienck <awienck@solnet.ch>
List: netbsd-users
Date: 08/24/2007 12:42:49
--Signature=_Fri__24_Aug_2007_12_42_49_+0200_oEtMuRNH84_0KdH8
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Salut,
On Fri, 24 Aug 2007 11:37:42 +0300, Jordan Gordeev
<jgordeev@dir.bg> wrote:
> Solaris 10 has a POSIX-compliant sh in /usr/xpg4/bin/sh.
That's not a standard place though and requires you to change the path
in the #! of the script. But it's true, of course, and that's what I do
under Solaris. (Apart from writing C programs)
> I'm wondering, do you lose if you write a script in Perl, Python or Tcl,=
=20
> as you do when you "go into Bashisms or kshisms"?
Well, most of them are behaving in the same way on most systems, given
of course that all modules are installed which are involved in the
computation of the script. But at least for the Perl case, using CPAN
resolves this ok, and using pkgsrc even makes it sustainable.
Blastwave also has some Perl packages, etc. The only annoying thing is
that the path of Perl is so dynamic. If you want the Perl that ships
with Solaris (the above example), use /usr/bin/perl, but don't expect
any good modules. If you want them, you have to use /opt/csw/bin/perl
or /usr/pkg/bin/perl, depending on if you use Blastwave or pkgsrc.
Oh well.
aw
--=20
Andr=E9 Wienck <awienck@solnet.ch>
--Signature=_Fri__24_Aug_2007_12_42_49_+0200_oEtMuRNH84_0KdH8
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)
iQIVAwUBRs62KZ7UJeBFtncvAQJtIw/9EHfguuQLsJj1OFYMX/CchEkKr5dUs2mG
kBoH4/99QyFbc4SnoXKJlEJyQUxeDdEuigQLQJOZL7D8pJBtx9PGBfVOcDr+3IDC
KYoh3I3/uow4CSn0AML/n94UY+AJcj92gBq1HKgy15x7o14WScdw3kDh+/Di0XbU
UEnX1Om1JtRAP+kjuvwEc+OXWzssBSgPQRvCdH2v2mT6m81R0pxOfc6y8saPDsNY
9AnE2KQC3WOyCBN6HOvf2i0whuAuVpS5AjY8sAS10UzSLyHZV8Ybt1+3JT7vxMCR
f0OcLkP6wKWCLhsvATbKAruEAHHpFXClfraaLrG1rKliKUG8qKLyiv8AwOmXRHJT
oJrCUTZ0ZT73DbUavLmPY04wclRL+qpAT1TE+54+bu23OoCbp1QomgD9gJxnZE8L
TxvPhw/eOVdmzgvpxq6UDXtHpeJESBExRCn0UjOtMkEDSxNs6D89gg/0PtWzWqs0
ADT4DYDx6xcTkNgw424hTNvnReIOoSJgIYXKMKmzCwun19jhM4KbdaPg9DZZwqZD
/zFDgH5cfrchioz7sPDAViKOdCWPdJ2o76ZizzdWjUbpoVyYx8NZsgxhsahOG8cy
x1CmM1aMlL1pIyzEabBmbb7h7z+JAfiOOC8oNSVSxdC9kwX0UOPlaMee8j1oeW1w
C3a/JEXBRms=
=scUA
-----END PGP SIGNATURE-----
--Signature=_Fri__24_Aug_2007_12_42_49_+0200_oEtMuRNH84_0KdH8--