Issue #7143 has been updated by luislavena (Luis Lavena).

Category set to misc
Status changed from Open to Assigned
Assignee set to usa (Usaku NAKAMURA)

Usa, do you think adding such support is a good thing?
----------------------------------------
Bug #7143: system("ls && ls") should work in windows
https://bugs.ruby-lang.org/issues/7143#change-31119

Author: rogerdpack (Roger Pack)
Status: Assigned
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category: misc
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/