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

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -