Project

General

Profile

Actions

Backport #7143

closed

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

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

Status:
Closed
[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 1 (0 open1 closed)

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

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0