From 5905fb8d4477f7f1b6dbd070fb0c8fa9d2e0d244 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 30 Apr 2016 04:38:25 -0400 Subject: allow env vars in single-word commands --- src/pty-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3-54-g00ecf