Source-Changes-HG archive

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

[src/trunk]: src/tools/host-mkdep Some shells have ((expr)) syntax for arithm...



details:   https://anonhg.NetBSD.org/src/rev/bb2f1dedbabc
branches:  trunk
changeset: 785723:bb2f1dedbabc
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed Mar 27 01:03:39 2013 +0000

description:
Some shells have ((expr)) syntax for arithmetic.  Add space between
parens of nested (compound-list)s to unconfuse them.

Fixes PR toolchain/47695

diffstat:

 tools/host-mkdep/host-mkdep.in |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r af33a2a22cb4 -r bb2f1dedbabc tools/host-mkdep/host-mkdep.in
--- a/tools/host-mkdep/host-mkdep.in    Wed Mar 27 00:39:31 2013 +0000
+++ b/tools/host-mkdep/host-mkdep.in    Wed Mar 27 01:03:39 2013 +0000
@@ -1,6 +1,6 @@
 #!@BSHELL@ -
 #
-#      $NetBSD: host-mkdep.in,v 1.28 2013/03/16 02:51:56 christos Exp $
+#      $NetBSD: host-mkdep.in,v 1.29 2013/03/27 01:03:39 uwe Exp $
 #
 # Copyright (c) 1991, 1993
 #      The Regents of the University of California.  All rights reserved.
@@ -231,7 +231,7 @@
                file=${file%.*}
                set_objlist $file
 
-               ((@CPP@ "$@" $f; echo $? >&3) | @AWK@ '
+               ( (@CPP@ "$@" $f; echo $? >&3) | @AWK@ '
                        /^#/ {
                                # Be as tolerant as possible.
                                sub(/^#(line)? [ 0-9]*\"?/, "")



Home | Main Index | Thread Index | Old Index