Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • It does seem to be proper bash, since that works. I am ssh-ing into one of my universities clusters
    – Kurru
    Commented Mar 11, 2011 at 0:59
  • 4
    The $((expression)) syntax is part of the POSIX sh standard, and derived from ksh.
    – geekosaur
    Commented Mar 11, 2011 at 1:05
  • 7
    Bash can only do integer arithmetic. It cannot do floating point arithmetic like ksh93 or zsh
    – fpmurphy
    Commented Mar 11, 2011 at 2:27
  • 4
    This should've been the accepted answer. Commented Sep 30, 2017 at 12:03