@(1CSH) COMMAND REFERENCE @(1CSH)
NAME
@ - shell variable assignment (csh built-in)
SYNOPSIS
@ [ variable_operation ]
DESCRIPTION
With no arguments, @ prints the names and values of all
shell variables. With arguments, the assignment is done.
The normal form for variable_operation is variable = expr.
The variable argument may either be a variable name or a
reference to a member of a vector variable (the variable and
element referenced must already exist). The expr argument
is a numerical expression involving integers. See csh(1csh)
for a complete description of expressions. In addition,
operators such as *=, +=, and so forth, are available as in
C. The spaces around the `=' are optional.
An alternate form of variable_operation involves the ++
(increment) and -- (decrement) operators. For example, the
command ``@ i++'' increments the value of the variable i.
EXAMPLES
The following shell script prints the integers from 1 to
100.
#!/bin/csh -f
set a=1
while ($a <= 100)
echo $a
@ a++
end
RETURN VALUE
[NO_ERRS] Command completed without error.
[1] An error of the type described in the message
occurred.
CAVEATS
Spaces are required in separating elements of the
expressions.
SEE ALSO
alias(1csh), bc(1), bg(1csh), break(1csh), cd(1csh),
chdir(1csh), continue(1csh), csh(1csh), dc(1), dirs(1csh),
echo(1csh), eval(1csh), exec(1csh), exit(1csh), expr(1),
fg(1csh), glob(1csh), goto(1csh), hashstat(1csh),
Printed 10/17/86 1
@(1CSH) COMMAND REFERENCE @(1CSH)
history(1csh), jobs(1csh), kill(1csh), limit(1csh),
logout(1csh), nice(1csh), nohup(1csh), notify(1csh),
onintr(1csh), popd(1csh), pushd(1csh), rehash(1csh),
repeat(1csh), set(1csh), setenv(1csh), sh(1sh), shift(1csh),
source(1csh), stop(1csh), suspend(1csh), time(1csh),
umask(1csh), unhash(1csh), unalias(1csh), unlimit(1csh),
unset(1csh), unsetenv(1csh), wait(1csh), which(1csh).
Printed 10/17/86 2
%%index%%
na:72,98;
sy:170,128;
de:298,1056;
ex:1354,262;
rv:1616,230;
ca:1846,124;
se:1970,576;2690,997;
%%index%%000000000129