3

What's the difference between these two? Example:

$ echo $((1+1))
2
$ echo $[1+1]
2

As shown here at Chapter 10, Section 2.

Jürgen Paul
  • 13,381
  • 25
  • 90
  • 131

1 Answers1

1

$[expression] is deprecated syntax, to accomplish same thing.

anishsane
  • 19,124
  • 5
  • 38
  • 71