Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2001 19:47:47 -0500
From:      Stephen Montgomery-Smith <stephen@math.missouri.edu>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Problems with MAKEDEV
Message-ID:  <3BA3F6B3.7A5FCE11@math.missouri.edu>

next in thread | raw e-mail | index | archive | help
When I run 
sh MAKEDEV all
using MAKEDEV from Sept 14/15, but sh from Sept 1, I get the following
message:

MAKEDEV: arith: syntax error:
"^H\xe0\x85^N^H^\\x86^N^H\xc8\x85^N^H\xe0\x85^N^H\
xe9\x85^N^H\xeb\x85^N^H\xee\x85^N^H^\\x86^N^H"

bad node: mknod i4bteld1

This seems like a strange error - if I make some randomish changes to
MAKEDEV I get some rather different responses - for example:

diff -u MAKEDEV-orig MAKEDEV
--- MAKEDEV-orig        Sat Sep 15 11:17:54 2001
+++ MAKEDEV     Sat Sep 15 11:18:25 2001
@@ -1746,6 +1746,8 @@
 i4bteld*)
        offset=64
        unit=`expr $i : 'i4bteld\(.*\)'`
+       echo here $unit
+       echo here `unit2minor \`expr $offset + $unit\``
        mknod i4bteld$unit c 56 `unit2minor \`expr $offset + $unit\``
        ;;
 

gives

MAKEDEV: arith: syntax error: "^Hbpf0"

MAKEDEV: arith: syntax error: "^Htun0"

MAKEDEV: arith: syntax error: "^Htap0"

here 0
here 64
here 1
here 65

whereas

diff -u MAKEDEV-orig MAKEDEV
--- MAKEDEV-orig        Sat Sep 15 11:17:54 2001
+++ MAKEDEV     Sat Sep 15 11:19:53 2001
@@ -1746,6 +1746,8 @@
 i4bteld*)
        offset=64
        unit=`expr $i : 'i4bteld\(.*\)'`
+       echo here 1 $unit
+       echo here 2 `unit2minor \`expr $offset + $unit\``
        mknod i4bteld$unit c 56 `unit2minor \`expr $offset + $unit\``
        ;;
 
gives no errors at all.

I am totally mystified - is it a bug in sh or something?


-- 
Stephen Montgomery-Smith
stephen@math.missouri.edu
http://www.math.missouri.edu/~stephen

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BA3F6B3.7A5FCE11>