Issue #7143 has been reported by rogerdpack (Roger Pack).

----------------------------------------
Bug #7143: system("ls && ls") should work in windows
https://bugs.ruby-lang.org/issues/7143

Author: rogerdpack (Roger Pack)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20) [i386-mingw32]


Hello.
Since windows "on the command line" supports &&, I believe this should work for ruby system commands.

It appears this run both commands, as expected (the first one fails):

using "||" works well:

>> system("ffmpeg -i || ls") # ffmpeg -i fails

using &&

>> system("ls && ls")
ls: &&: No such file or directory
ls: ls: No such file or directory
=> false

Thanks.
-roger-


-- 
http://bugs.ruby-lang.org/