summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorjakllsch <jakllsch@NetBSD.org>2022-12-28 19:23:02 +0000
committerjakllsch <jakllsch@NetBSD.org>2022-12-28 19:23:02 +0000
commit64d0289ec5bf315b739b7b4113a5cb50730006b5 (patch)
tree142d37d2e8bf7eba72534d12f9ae67343df0b696 /etc
parentd87bcd353251b7bda9ab2c737383d1b1702a044e (diff)
fix hexprint function
Diffstat (limited to 'etc')
-rw-r--r--etc/MAKEDEV.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/MAKEDEV.tmpl b/etc/MAKEDEV.tmpl
index 43a664125e5..3d0d32304db 100644
--- a/etc/MAKEDEV.tmpl
+++ b/etc/MAKEDEV.tmpl
@@ -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}"