Confirmed, gnuwin32 provides a dir.EXE, where as dir is a cmd.exe/command.com built-in
$ set IPCRUN3DEBUG=999
$ perl -MIPC::Run3 -e "run3 [qw! C:/PROGRA~1/gnuwin32/bin/dir.EXE /b /
+s /a-d | cat !], undef,\*STDOUT,\*STDERR"
run3(): running 'C:/PROGRA~1/gnuwin32/bin/dir.EXE' '/b' '/s' '/a-d' '|
+' 'cat'
run3(): redirecting stdout to filehandle 'GLOB(0x9ba4ec)'
binmode STDOUT, :crlf
run3(): redirecting stderr to filehandle 'GLOB(0x9ba52c)'
binmode STDERR, :crlf
C:/PROGRA~1/gnuwin32/bin/dir.EXE: /b: No such file or directory
C:/PROGRA~1/gnuwin32/bin/dir.EXE: /s: No such file or directory
C:/PROGRA~1/gnuwin32/bin/dir.EXE: /a-d: No such file or directory
C:/PROGRA~1/gnuwin32/bin/dir.EXE: |: Invalid argument
C:/PROGRA~1/gnuwin32/bin/dir.EXE: cat: No such file or directory
run3(): $? is 512
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.