1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-04-30 05:45:16 +02:00

unposted (cf. 51016): Add a test case for underscore-followed-by-digits in math context.

This commit is contained in:
Daniel Shahaf 2022-11-23 14:21:25 +00:00
parent e4aeb3b911
commit 291940bae6
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2022-11-23 Daniel Shahaf <d.s@daniel.shahaf.name>
* unposted (cf. 51016): Test/C01arith.ztst: Add a test case
for underscore-followed-by-digits in math context.
2022-11-17 Oliver Kiddle <opk@zsh.org>
* unposted (c.f. Norikatsu Shigemura: github #96):

View File

@ -251,6 +251,14 @@
>5000
>255
set -- {101..120}
_10=42
echo $_10 : $1_0
echo $(( _10 )) : $(( 1_0 ))
0:underscores in front of a numeric identifier is not a math constant
>42 : 101_0
>42 : 10
# Force floating point.
for expr in "3/4" "0x100/0x200" "0x30/0x10"; do
print $(( $expr ))