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).
This commit is contained in:
Richard W.M. Jones
2010-11-05 15:04:08 +00:00
parent 7d8807ec3b
commit 633ae13c80

View File

@@ -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);
}