Does anybody know, why following does not work from dom0?
test() { qvm-run -q myqube "echo $@ > /home/user/foo"; }
test hello world
Whereas first storing arguments $@ in a variable does work:
test() { args="$@"; qvm-run -q myqube "echo $args > /home/user/foo"; }
test hello world
Is it some sort of escape filtering of the @ char in $@?
Shouldn’t $@ have already been replaced by dom0 terminal, before doing RPC stuff and filtering chars?