I need a way to tell what mode the shell is in from within the shell.
While I\'m primarily an OS X user, I\'d be interested in knowing about other platforms as well.<
For 32 bit it will return 32 and for 64 bit it will return 64
import struct print(struct.calcsize("P") * 8)