Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Fix the implementation of the ?: $(( )) operator. It...



details:   https://anonhg.NetBSD.org/src/rev/59d51b6c85f1
branches:  trunk
changeset: 815344:59d51b6c85f1
user:      kre <kre%NetBSD.org@localhost>
date:      Thu May 12 13:05:18 2016 +0000

description:
Fix the implementation of the ?: $(( )) operator.  It is right associative...

ok christos@

diffstat:

 bin/sh/arith.y |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 3b0873dec91c -r 59d51b6c85f1 bin/sh/arith.y
--- a/bin/sh/arith.y    Thu May 12 12:51:53 2016 +0000
+++ b/bin/sh/arith.y    Thu May 12 13:05:18 2016 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: arith.y,v 1.24 2016/03/16 15:43:38 christos Exp $      */
+/*     $NetBSD: arith.y,v 1.25 2016/05/12 13:05:18 kre Exp $   */
 
 /*-
  * Copyright (c) 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)arith.y    8.3 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: arith.y,v 1.24 2016/03/16 15:43:38 christos Exp $");
+__RCSID("$NetBSD: arith.y,v 1.25 2016/05/12 13:05:18 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -65,7 +65,7 @@
 %}
 %token ARITH_NUM ARITH_LPAREN ARITH_RPAREN
 
-%left ARITH_QM ARITH_COLON
+%right ARITH_QM ARITH_COLON
 %left ARITH_OR
 %left ARITH_AND
 %left ARITH_BOR



Home | Main Index | Thread Index | Old Index