commit c7bf0604ba222bf9437b3500c27e5d7a14f9f25a
parent a4b4f1c4dada4128c004a959c5dd1f40ec340a6e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 2 Oct 2014 01:01:58 +0000
export line and write str as env
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
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 ||