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
  • 14,299
  • 26
  • 93
  • 133

1 Answers1

1

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

anishsane
  • 20,270
  • 5
  • 40
  • 73