summaryrefslogtreecommitdiffstats
path: root/bin/date
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-12-18 23:03:51 +0000
committerjilles <jilles@FreeBSD.org>2010-12-18 23:03:51 +0000
commit84941f8297970e3618d7e98cdbef942031b9a596 (patch)
tree25ca73deea96a1e4bb9d3b97235aa742e7f61254 /bin/date
parent2a8eefc56b6eda956a168d2be7354df603b97b24 (diff)
downloadFreeBSD-src-84941f8297970e3618d7e98cdbef942031b9a596.zip
FreeBSD-src-84941f8297970e3618d7e98cdbef942031b9a596.tar.gz
sh: arith: Disallow decimal constants starting with 0 (containing 8 or 9).
Constants in arithmetic starting with 0 should be octal only. This avoids the following highly puzzling result: $ echo $((018-017)) 3 by making it an error instead.
Diffstat (limited to 'bin/date')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud