Problems with variable substitution in C-Shells
lim at ecs.umass.edu
lim at ecs.umass.edu
Fri Nov 30 21:42:00 AEST 1990
Hi,
I'd appreciate any answers you may have to the following simple(?) question. It
concerns variable substitution in a C-Shell:
Suppose I have:
@ num = 5
set str = num
alias ech 'echo $\!*'
So:
(ech str) will output num, but (ech $str) won't output 5. The error message
says: variable syntax.
In other words:
$str = num, but how may I do something like $($str) ?
Thanks in advance.
Jonathan Lim
More information about the Comp.unix.shell
mailing list