This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
system('VAR123=foo cmd') wasn't invoking shell (de-locale-ized patch
authorGurusamy Sarathy <gsar@cpan.org>
Sun, 23 Jan 2000 13:12:31 +0000 (13:12 +0000)
committerGurusamy Sarathy <gsar@cpan.org>
Sun, 23 Jan 2000 13:12:31 +0000 (13:12 +0000)
suggested by Dominic Dunlop <domo@computer.org>)

p4raw-id: //depot/perl@4864

doio.c

diff --git a/doio.c b/doio.c
index 08264a9..3e412b8 100644 (file)
--- a/doio.c
+++ b/doio.c
@@ -1257,7 +1257,7 @@ Perl_do_exec3(pTHX_ char *cmd, int fd, int do_report)
     if (strnEQ(cmd,"exec",4) && isSPACE(cmd[4]))
        goto doshell;
 
-    for (s = cmd; *s && isALPHA(*s); s++) ;    /* catch VAR=val gizmo */
+    for (s = cmd; *s && isALNUM(*s); s++) ;    /* catch VAR=val gizmo */
     if (*s == '=')
        goto doshell;