]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sh(1): Mention possible ambiguities with $(( and ((.
authorJilles Tjoelker <jilles@FreeBSD.org>
Sun, 24 Mar 2013 22:48:45 +0000 (22:48 +0000)
committerJilles Tjoelker <jilles@FreeBSD.org>
Sun, 24 Mar 2013 22:48:45 +0000 (22:48 +0000)
commit54ccc8b588e175397eb1f23416100b40fb1196b0
tree3fa1fbc4660d33ede27ef6f389d72513f3cf2528
parent061ea59dc2d1542645939af5173192d9b86650d8
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.
bin/sh/sh.1