1) Use the File --> Execute menu. Click on the Environment button and edit the HOME var before launching the program.
The complete environment is saved in the history, so if you want to re-run the program later, you can edit the saved environment. From the zerobugs menu bar select Tools --> History. In the dialog that opens, find the entry that corresponds to your executable and right-click on it. Select Environment from the menu.
2) There is no UI for specifying redirects, but try this hack for a workaround: make a wrapper shell script like this:
#! /bin/sh
./a.out < test2.c > out.txt
chmod +x wrapper
zero --trace-fork ./wrapper
Then press F10 (or from the menu bar, select Program --> Next) in zerobugs.
--
the-free-meme.blogspot.com