esh: fix parse mistake on ~;

This commit is contained in:
K. Lange 2018-11-21 15:07:30 +09:00
parent 0888d02cb5
commit 8e09834b11

View File

@ -941,7 +941,7 @@ int shell_exec(char * buffer, size_t size, FILE * file, char ** out_buffer) {
if (quoted || collected || backtick) {
goto _just_add;
} else {
if (p[1] == 0 || p[1] == '/' || p[1] == '\n' || p[1] == ' ') {
if (p[1] == 0 || p[1] == '/' || p[1] == '\n' || p[1] == ' ' || p[1] == ';') {
char * c = getenv("HOME");
if (!c) {
goto _just_add;