summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-28 13:54:14 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-28 13:54:14 +0900
commit1d83302f32923948d34baa62c6307123864f56a6 (patch)
treeec8de45cd192e0117880ef8fd46c66e165df77f7 /win32
parentace2eee544378eb03ea95b95c89434508325e8c8 (diff)
downloadruby-1d83302f32923948d34baa62c6307123864f56a6.tar.gz
[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.
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub2
1 files changed, 1 insertions, 1 deletions
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)
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 = ;