[前][次][番号順一覧][スレッド一覧]

ruby-changes:73085

From: Nobuyoshi <ko1@a...>
Date: Sun, 28 Aug 2022 13:54:37 +0900 (JST)
Subject: [ruby-changes:73085] 1d83302f32 (master): [Win32] Use `exit` instead of `type` [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=1d83302f32

From 1d83302f32923948d34baa62c6307123864f56a6 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 28 Aug 2022 13:54:14 +0900
Subject: [Win32] Use `exit` instead of `type` [ci skip]

`exit` command ignores the rest arguments after an exit code, while
`type` command tries to read all as files.
---
 win32/Makefile.sub | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 1aa27a9119..3de53d8372 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -4,7 +4,7 @@ SHELL = $(COMSPEC) https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L4
 ECHO1 = $(V:1=@:)
 RUNCMD = $(COMSPEC) /c
 MKFILES = Makefile verconf.mk
-NULLCMD = type nul
+NULLCMD = exit /b0.		# exit ignores the rest
 NULL = nul
 CHDIR = cd
 PATH_SEPARATOR = ;
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]