Subject: Re: dev/MAKEDEV not portable
To: None <current-users@NetBSD.ORG>
From: Mike Long <mikel@shore.net>
List: current-users
Date: 12/17/1997 17:40:26
>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.
-- 
Mike Long <mikel@shore.net>                http://www.shore.net/~mikel
"Every normal man must be tempted at times to spit on his hands,
hoist the black flag, and begin slitting throats." -- H.L. Mencken