diff options
author | Abhijit Menon-Sen <ams@wiw.org> | 2007-08-08 21:58:29 +0000 |
---|---|---|
committer | Abhijit Menon-Sen <ams@wiw.org> | 2007-08-08 21:58:29 +0000 |
commit | 304334dafcf24508b017cfdd22e0883402e1d769 (patch) | |
tree | 524f39d83667ca9dd8148d54d377eb75c1451f65 /perl.c | |
parent | 76c95dfe0d56de513d034510a89f3818a41be573 (diff) | |
download | perl-304334dafcf24508b017cfdd22e0883402e1d769.tar.gz |
Revert #31690, because it can make -x eat arguments. Even if the
next argument happens to be a directory name, changing this does
not seem worthwhile. It's as likely as not to break something.
The many -x users clamouring for consistency must go home
empty-handed, alas.
p4raw-id: //depot/perl@31691
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1997,13 +1997,8 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit) case 'x': PL_doextract = TRUE; s++; - if (*s) { + if (*s) cddir = s; - } - else if ((s=argv[1]) && *s != '-') { - argc--,argv++; - cddir = s; - } break; case 0: break; |