logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

patch@26253 Allow embedded new lines passed through to commands: msg#00015

Subject: patch@26253 Allow embedded new lines passed through to commands
Is there any real reason that commands are being truncated if they have an embedded new line?

Removing these lines makes test t/op/gv.t work on OpenVMS and improves some other tests that are still failing for other reasons.

The way that parameters are passed to sub-processes on OpenVMS will pass all non-null binary data through to the program with out the DCL command interpreter processing them.

-John
wb8tyw@xxxxxxx
Personal Opinion Only
--- /rsync_root/perl/vms/vms.c  Sat Dec  3 10:44:45 2005
+++ vms/vms.c   Wed Dec  7 22:12:08 2005
@@ -3391,9 +3391,6 @@
     _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++;
<Prev in Thread] Current Thread [Next in Thread>