This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
patch@26253 Allow embedded new lines passed through to commands
authorJohn E. Malmberg <wb8tyw@qsl.net>
Wed, 7 Dec 2005 22:26:21 +0000 (17:26 -0500)
committerCraig A. Berry <craigberry@mac.com>
Thu, 8 Dec 2005 04:34:42 +0000 (04:34 +0000)
From: "John E. Malmberg" <wb8tyw@qsl.net>
Message-id: <4397A7DD.8030403@qsl.net>

p4raw-id: //depot/perl@26298

vms/vms.c

index 294b73f..a1facc5 100644 (file)
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -3391,9 +3391,6 @@ safe_popen(pTHX_ const char *cmd, const char *in_mode, int *psts)
     _ckvmssts(lib$set_symbol(&d_sym_out, &d_symbol, &table));
 
     p = vmscmd->dsc$a_pointer;
-    while (*p && *p != '\n') p++;
-    *p = '\0';                                  /* truncate on \n */
-    p = vmscmd->dsc$a_pointer;
     while (*p == ' ' || *p == '\t') p++;        /* remove leading whitespace */
     if (*p == '$') p++;                         /* remove leading $ */
     while (*p == ' ' || *p == '\t') p++;