Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/atari/floppies/common Avoid use of expr(1).



details:   https://anonhg.NetBSD.org/src/rev/a078b0a62576
branches:  trunk
changeset: 827870:a078b0a62576
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Nov 15 16:19:19 2017 +0000

description:
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.

diffstat:

 distrib/atari/floppies/common/dot.profile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 994ca733f5a4 -r a078b0a62576 distrib/atari/floppies/common/dot.profile
--- a/distrib/atari/floppies/common/dot.profile Wed Nov 15 13:53:26 2017 +0000
+++ b/distrib/atari/floppies/common/dot.profile Wed Nov 15 16:19:19 2017 +0000
@@ -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 @@
                _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: "



Home | Main Index | Thread Index | Old Index