explain bash variable assignement output -
can explain me why
vbb:~ me$ test="zut"; echo $test; echo $test > test2; echo "echo test " $test2
output :
zut echo test vbb:~ me$
and not
zut echo test zut vbb:~ me$
because echo $test > test2
writes output file named test2.
this set of commands expect:
test="zut"; echo $test; test2=$test; echo "echo test " $test2
Comments
Post a Comment