diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-04-30 04:38:25 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-04-30 04:38:25 -0400 |
commit | 5905fb8d4477f7f1b6dbd070fb0c8fa9d2e0d244 (patch) | |
tree | 1399cae7d97363b7e112740b548ddd17aca320fe | |
parent | 86e614feb3be0d824416a26a6eeb87c661b0e449 (diff) | |
download | runes-5905fb8d4477f7f1b6dbd070fb0c8fa9d2e0d244.tar.gz runes-5905fb8d4477f7f1b6dbd070fb0c8fa9d2e0d244.zip |
allow env vars in single-word commands
-rw-r--r-- | src/pty-unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pty-unix.c b/src/pty-unix.c index 663d224..5431528 100644 --- a/src/pty-unix.c +++ b/src/pty-unix.c @@ -72,7 +72,7 @@ void runes_pty_backend_spawn_subprocess(RunesTerm *t) unsetenv("LINES"); unsetenv("COLUMNS"); - if (strchr(cmd, ' ')) { + if (strpbrk(cmd, " $")) { execlp("/bin/sh", "/bin/sh", "-c", cmd, (char *)NULL); } else { |