Module Name:    src
Committed By:   jakllsch
Date:           Wed Dec 28 19:23:02 UTC 2022

Modified Files:
        src/etc: MAKEDEV.tmpl

Log Message:
fix hexprint function


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/etc/MAKEDEV.tmpl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/MAKEDEV.tmpl
diff -u src/etc/MAKEDEV.tmpl:1.232 src/etc/MAKEDEV.tmpl:1.233
--- src/etc/MAKEDEV.tmpl:1.232	Wed Sep 21 18:55:21 2022
+++ src/etc/MAKEDEV.tmpl	Wed Dec 28 19:23:02 2022
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#	$NetBSD: MAKEDEV.tmpl,v 1.232 2022/09/21 18:55:21 wiz Exp $
+#	$NetBSD: MAKEDEV.tmpl,v 1.233 2022/12/28 19:23:02 jakllsch Exp $
 #
 # Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -362,7 +362,7 @@ hexprint()
 	hex=
 	set -- 0 1 2 3 4 5 6 7 8 9 a b c d e f
 	while [ "$val" -gt 0 ]; do
-		eval hex=\$$(($val % 16 + 1))\$hex
+		eval hex=\${$(($val % 16 + 1))}\$hex
 		val="$(($val / 16))"
 	done
 	echo "${hex:-0}"

Reply via email to