Name

@!

Synopsis

                     @ [variable[n]=expression]

Assign the value of the arithmetic expression to variable or to the nth element of variable if the index n is specified. With no variable or expression specified, print the values of all shell variables (same as set). Expression operators as well as examples are listed under Section 21.5 earlier in this chapter. Two special forms also are valid:

@ variable ++

Increment variable by 1.

@ variable --

Decrement variable by 1.

Get Mac OS X in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.