From: Richard W.M. Jones Date: Fri, 5 Nov 2010 15:04:08 +0000 (+0000) Subject: fish: More portable export sh statment. X-Git-Tag: 1.6.2~53 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=9f64b0f70e2d03bfae8045a936a190badaa0c127;p=libguestfs.git fish: More portable export sh statment. Don't depend on bash, but allow sh/dash/etc format: GUESTFISH_PID=nn; export GUESTFISH_PID (Thanks Eric Blake). (cherry picked from commit 633ae13c80d40b0f30db73e520c08cf365d2f8a3) --- diff --git a/fish/rc.c b/fish/rc.c index e637fc6..2d2f227 100644 --- a/fish/rc.c +++ b/fish/rc.c @@ -198,7 +198,7 @@ rc_listen (void) if (pid > 0) { /* Parent process. */ - printf ("export GUESTFISH_PID=%d\n", pid); + printf ("GUESTFISH_PID=%d; export GUESTFISH_PID\n", pid); fflush (stdout); _exit (0); }