254 B
254 B
title | tags | |
---|---|---|
eval |
|
Compose a statement for execution.
x='echo $y'
echo $x
y=dragon
eval "$x"
The results remain in the current shell, unlike sub-shells.
b=basilisk
sh -c 'echo $b'
eval "g=goblin"
echo $g