Project

General

Profile

Actions

Backport #7143

closed

system("ls && ls") should work in windows

Added by rogerdpack (Roger Pack) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:47912]

Description

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-


Related issues

Related to Ruby master - Feature #4269: command with && should execute as shellClosednobu (Nobuyoshi Nakada)01/12/2011Actions
Actions

Also available in: Atom PDF