Subject: Re: MAKEDEV is not portable To: None <pk@cs.few.eur.nl> From: Charles M. Hannum <root@ihack.net> List: port-sparc Date: 01/06/1999 18:54:02
It occurs to me that (this not being C, after all B-P), it would be
better to just do:
if [ whatever ]; then
mkdisk() {
mknod $1 b $2 $(($3 * 16 + $4))
}
...
else
mkdisk() {
mknod $1 b $2 `expr $3 * 16 + $4`
}
...
fi
but you get the idea.