@ (at) built-in command for tcsh: Print the value of tcsh shell variables

Format

  • @
  • @ name = expr
  • @ name[index] = expr
  • @ name+ + |– –
  • @ name[index]+ + |– –

Description

@ (at) in the tcsh shell prints the value of tcsh shell variables.

Options

@ in the tcsh shell supports the following options:
name = expr
Assigns the value of expr to name.
name[index] = expr
Assigns the value of expr to the index'th component of name. Both name and its index'th component must already exist.

For both name = expr and name[index] = expr , expr might contain the operators *, +, etc. as in C. If expr contains <, >, &, or " then at least part of expr must be placed within (). The syntax of expr has nothing to do with that described under Expressions.

expr must evaluate to a numeric expression. Therefore, use set instead of @ to assign array variables.

name+ + |– –
Increments (++) or decrements (– –) name.
name[index]+ + |– –
Increments (++) or decrements (– –) name's index'th component.

Usage notes

  1. The space between @ and name is required.
  2. The spaces between name and = and between = and expr are optional.
  3. Components of expr must be separated by spaces.

Related information

tcsh