export line and write str as env - sob - simple output bar
HTML git clone git://git.codemadness.org/sob
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit c7bf0604ba222bf9437b3500c27e5d7a14f9f25a
DIR parent a4b4f1c4dada4128c004a959c5dd1f40ec340a6e
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 2 Oct 2014 01:01:58 +0000
export line and write str as env
Diffstat:
M sob.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/sob.c b/sob.c
@@ -431,6 +431,8 @@ pipecmd(char *cmd[], char *writestr, char *outbuf, size_t outbufsiz)
return -1;
} else if (pid == 0) {
/* child */
+ setenv("SOBLINE", line.line, 1);
+ setenv("SOBWRITE", writestr, 1);
close(cp[0]);
close(pc[1]);
if (dup2(pc[0], STDIN_FILENO) == -1 ||