Module Name: src
Committed By: tsutsui
Date: Wed Nov 15 16:19:19 UTC 2017
Modified Files:
src/distrib/atari/floppies/common: dot.profile
Log Message:
Avoid use of expr(1).
It was removed from src/distrib/atari/floppies/install/list since rev 1.19
and the install script complains expr is not found.
Should be pulled up to netbsd-8.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/distrib/atari/floppies/common/dot.profile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/atari/floppies/common/dot.profile
diff -u src/distrib/atari/floppies/common/dot.profile:1.5 src/distrib/atari/floppies/common/dot.profile:1.6
--- src/distrib/atari/floppies/common/dot.profile:1.5 Sat Jan 30 00:52:11 2016
+++ src/distrib/atari/floppies/common/dot.profile Wed Nov 15 16:19:19 2017
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.5 2016/01/30 00:52:11 tsutsui Exp $
+# $NetBSD: dot.profile,v 1.6 2017/11/15 16:19:19 tsutsui Exp $
#
# Copyright (c) 1995 Jason R. Thorpe
# Copyright (c) 1994 Christopher G. Demetriou
@@ -79,7 +79,7 @@ if [ "X${DONEPROFILE}" = "X" ]; then
_num=0
for i in $_maps; do
echo " $_num $i"
- _num=`expr $_num + 1`
+ _num=$(( $_num + 1 ))
done
echo
echo -n "Select the number of the map you want to activate: "