4 environment variables are read in code but not listed in any env example or doc (THEFUCK_OUTPUT_LOG, PS1, TF_HISTORY, TF_SHELL)
size = os.path.getsize(os.environ['THEFUCK_OUTPUT_LOG'])
- thefuck/output_readers/read_log.py:16 (opens in new tab): ps1 = os.environ['PS1']
- thefuck/entrypoints/fix_command.py:16 (opens in new tab): elif not os.environ.get('TF_HISTORY'):
- thefuck/shells/__init__.py:24 (opens in new tab): name = os.environ.get('TF_SHELL')
An agent has to guess a value the app expects, or it runs with a silently different configuration.