diff options
| author | Christoph Lohmann <20h@r-36.net> | 2012-10-09 19:33:26 +0200 |
|---|---|---|
| committer | Christoph Lohmann <20h@r-36.net> | 2012-10-09 19:33:26 +0200 |
| commit | eb6713acf1928ec94364627ed583252370051705 (patch) | |
| tree | d5570772dcfb47a599e0606d1dd83e0918edee50 | |
| parent | 9e813947cf4631c0ca8e5f73ebfb269ef2f8252b (diff) | |
| download | st-eb6713acf1928ec94364627ed583252370051705.tar.gz st-eb6713acf1928ec94364627ed583252370051705.zip | |
If there is really someone without SHELL set, help him/her.
| -rw-r--r-- | st.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -865,6 +865,9 @@ execsh(void) { | |||
| 865 | char **args; | 865 | char **args; |
| 866 | char *envshell = getenv("SHELL"); | 866 | char *envshell = getenv("SHELL"); |
| 867 | 867 | ||
| 868 | if (envshell == NULL) | ||
| 869 | envshell ="/bin/sh"; | ||
| 870 | |||
| 868 | unsetenv("COLUMNS"); | 871 | unsetenv("COLUMNS"); |
| 869 | unsetenv("LINES"); | 872 | unsetenv("LINES"); |
| 870 | unsetenv("TERMCAP"); | 873 | unsetenv("TERMCAP"); |
