about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-12-19 17:42:09 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-12-19 17:42:09 +0000
commitc8d07027c89d36a5a3981196a19d48a9286127a8 (patch)
tree47d284216cd29b7f72abe99db4c197b80a6cf4ab /Test
parenta9b59ef8ecf6a5a2829448ed48a9c6135b9b15c6 (diff)
downloadzsh-c8d07027c89d36a5a3981196a19d48a9286127a8.tar.gz
zsh-c8d07027c89d36a5a3981196a19d48a9286127a8.tar.xz
zsh-c8d07027c89d36a5a3981196a19d48a9286127a8.zip
28537: fix word splitting on "((" when it was nested subshells rather than
arithmetic
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 8ce68c317..8ba08b29c 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -393,6 +393,7 @@
     'foo=(1 2 3)'
     '(( 3 + 1 == 8 / 2 ))'
     'for (( i = 1 ; i < 10 ; i++ ))'
+    '((0.25542 * 60) - 15)*60'
   )
   for string in $strings; do
     array=(${(z)string})
@@ -416,6 +417,19 @@
 >4:i < 10 ;:
 >5:i++ :
 >6:)):
+# This one needs resolving between a math expression and
+# a command, which causes interesting effects internally.
+>1:(:
+>2:(:
+>3:0.25542:
+>4:*:
+>5:60:
+>6:):
+>7:-:
+>8:15:
+>9:):
+>10:*60:
+
 
   line=$'A line with # someone\'s comment\nanother line # (1 more\nanother one'
   print "*** Normal ***"