Dear all, just stumbled across it and was wondering what a reviewer would expect from this code to do:
```
#!/bin/bash
function badCode {
echo "bad code executed"
}
function testCode {
#pick some existing file, nonexisting works too though
echo "/etc/passwd"
}
function tfunc {
local foo=
foo="$(testCode)" || {echo "foo";}
cat "$foo" || {
badCode
case $? in
*)
exit 1
esac
}
}
echo "Finished."
```
At least on my amchine it executes "badCode" in both domU and dom0.
I guess it's a bash bug and reported it accordingly, but anyway...
Have a nice weekend & BR
David
--
You received this message because you are subscribed to the Google Groups
"qubes-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-devel/4467836d-3c79-4e42-992d-e39cc8b6cc39%40hackingthe.net.
smime.p7s
Description: S/MIME Cryptographic Signature
