A few items here:
The standard shell in 10.3+ is bash which allows for sh-type one-time environment variable sets in this fashion:
bash
$ MallocStackLogging=1 ~/Documents/Projects/MyProgram/Contents/MacOS/MyProgram
Enjoy.
Location Austin, TX
Home page/site http://www.hopelessgeek.com/
blog advertising is good for you