mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
"python -c" works, so python is a shell. [However, scripts often use:
#!/usr/bin/env python instead of #!/usr/bin/python because for a long time python was not "blessed" by living in /usr/bin; many users have python in /usr/local or some other place in $PATH. And /usr/bin/env does not take "-c".] committer: jreiser <jreiser> 1081041516 +0000
This commit is contained in:
parent
1555be40b7
commit
5a94136764
|
@ -96,7 +96,7 @@ bool PackLinuxI386sh::getShellName(char *buf)
|
|||
buf[l_shname] = 0;
|
||||
static char const *const shname[] = { // known shells that accept "-c" arg
|
||||
"ash", "bash", "bsh", "csh", "ksh", "pdksh", "sh", "tcsh", "zsh",
|
||||
//"python", // FIXME: does python work ???
|
||||
"python",
|
||||
NULL
|
||||
};
|
||||
const char *bname = strrchr(buf, '/');
|
||||
|
|
Loading…
Reference in New Issue
Block a user