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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -