I try to wrote a little script.
When _DEBUG=="off", the last 2 lines
are executed. But, when _DEBUG=="on"
the last 2 lines should give on the
console :mv toto tata
cat tata >> tutu
Now, i get only the first line :mv toto tata
and also :
$ cat tutucat tata
The problem seems to be with the redirection (>>).
How can i modify my script to reach my goal ?
[ "$_DEBUG" == "on" ] && echo -E "$@"
[ "$_DEBUG" == "off" ] && $@
echo "test" > toto
DEBUG mv toto tata
DEBUG cat tata >> tutu