mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-12-28 04:05:12 +01:00
unposted (cf. 51016): Add a test case for underscore-followed-by-digits in math context.
This commit is contained in:
parent
e4aeb3b911
commit
291940bae6
2 changed files with 13 additions and 0 deletions
|
@ -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):
|
||||
|
|
|
@ -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 ))
|
||||
|
|
Loading…
Reference in a new issue