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/71f7fafd92f7
branches:  trunk
changeset: 357569:71f7fafd92f7
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 0ea78c6c1096 -r 71f7fafd92f7 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