Created
December 9, 2012 04:21
-
-
Save cou929/4243321 to your computer and use it in GitHub Desktop.
子プロセスから HISTFILE シェル変数は読めない
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python -c 'import os; print os.environ["SHELL"]; print os.environ["HISTFILE"]' | |
/bin/zsh | |
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
File "/Users/kosei/.virtualenvs/dev/bin/../lib/python2.7/UserDict.py", line 23, in __getitem__ | |
raise KeyError(key) | |
KeyError: 'HISTFILE' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment