]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r248692: sh(1): Mention possible ambiguities with $(( and ((.
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 3 Jul 2013 21:22:47 +0000 (21:22 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 3 Jul 2013 21:22:47 +0000 (21:22 +0000)
commit5bc6eae96b4d64b927794a5392b609edcbd1ca96
tree6a98725ecc975c1dfbb3ca9cd179460fc26718f3
parent5fd3ad87eff2de3a40ff8c2a8f4bd0dd395810ec
MFC r248692: sh(1): Mention possible ambiguities with $(( and ((.

In some other shells, things like $((a);(b)) are command substitutions.

Also, there are shells that have an extension ((ARITH)) that evaluates an
arithmetic expression and returns status 1 if the result is zero, 0
otherwise. This extension may lead to ambiguity with two subshells starting
in sequence.

git-svn-id: svn://svn.freebsd.org/base/stable/9@252609 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
bin/sh/sh.1