f6ea51
From 8e7c2faafb74d3b07e8a5818608dfe065e361604 Mon Sep 17 00:00:00 2001
f6ea51
From: "Craig A. Berry" <craigberry@mac.com>
f6ea51
Date: Mon, 1 Jan 2018 10:10:33 -0600
f6ea51
Subject: [PATCH] Reenable numeric first argument of system() on VMS.
f6ea51
MIME-Version: 1.0
f6ea51
Content-Type: text/plain; charset=UTF-8
f6ea51
Content-Transfer-Encoding: 8bit
f6ea51
f6ea51
This was broken in 64def2aeaeb63f92dadc6dfa334, and fixed for Win32
f6ea51
only in 8fe3452cc6ac7af8c08.  But VMS also uses a numeric first
f6ea51
argument to system() as a flag indicating spawn without waiting for
f6ea51
completion.
f6ea51
f6ea51
Signed-off-by: Petr Písař <ppisar@redhat.com>
f6ea51
---
f6ea51
 pp_sys.c | 2 +-
f6ea51
 1 file changed, 1 insertion(+), 1 deletion(-)
f6ea51
f6ea51
diff --git a/pp_sys.c b/pp_sys.c
f6ea51
index 0c9147bc4e..5154b9baa8 100644
f6ea51
--- a/pp_sys.c
f6ea51
+++ b/pp_sys.c
f6ea51
@@ -4375,7 +4375,7 @@ PP(pp_system)
f6ea51
 	STRLEN len;
f6ea51
 	char *pv;
f6ea51
 	SvGETMAGIC(origsv);
f6ea51
-#ifdef WIN32
f6ea51
+#if defined(WIN32) || defined(__VMS)
f6ea51
 	/*
f6ea51
 	 * Because of a nasty platform-specific variation on the meaning
f6ea51
 	 * of arguments to this op, we must preserve numeric arguments
f6ea51
-- 
f6ea51
2.13.6
f6ea51