Subject: Re: dev/MAKEDEV not portable
To: Mike Long <mikel@shore.net>
From: Jim Wise <jimw@numenor.turner.com>
List: current-users
Date: 12/18/1997 11:14:58
-----BEGIN PGP SIGNED MESSAGE-----

On Wed, 17 Dec 1997, Mike Long wrote:

> >Date: Wed, 17 Dec 1997 10:56:27 -0500
> >From: "Gordon W. Ross" <gwr@mc.com>
> 
> >> b) dev/MAKEDEV could be run on the server.
> >Very easy to accomplish if the MAKDEDEV script uses
> >only vanilla (POSIX complient!) shell features.
> >
> >> At present the use of cute features like $(($unit + 16)) etc
> >> rules out b.  `expr ` may be sub-optimal, but for something that gets
> >> run only once or twice in the lifetime of a system, optimization is
> >> a non-issue.
> 
> IIRC the '$(( ))' form *is* POSIX compliant in that any POSIX.2 sh
> must support '$(( ))'.  If the NFS server lacks a POSIX shell you can
> always build either NetBSD's sh or bash on it.

Or, better, pdksh has an option to build a straight posix shell.  It'll
build just about anywhere (I use it on Solaris, SunOS, and NeXTStep,
but it supports many more), and it is stable, fast, and properly
featureful without being too bloated (my main problem with bash)...

- --
				Jim Wise
				jim.wise@turner.com

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Charset: noconv

iQEVAwUBNJlMBxg+dMhCouwfAQHiZggAja4seD1J0TcorLuxKVQ8cMj2FG6dSmgI
NBB9z+OFjPfnZKJJtp1/SGq1pcFHzg27nSSv9E9lLPYqYmUrI0vhaBMsDWXiDzoh
kklYMgVdLEM2qUvNM6lx5tqMCiYu5OOlrQl8gPIXd6+NpgDta4qv2PADuKWJGAWC
PXCBrgO5U4y1Tnpo2XHXz11NDD1jMVDBgHKP9rwgMhbG3lnOhDBqNJeZIIreYLos
5PP998f1ORHW+Zh+MhH5JINelu5/VwH+lc9tOlh2kND+nCmlBccfeuUlzEvt3ryz
cHBJLpxMYOYU9U3lDnHpoMOXxScUUnSak2uH9rMOyEIrDYQvQBpT6g==
=zVl5
-----END PGP SIGNATURE-----