From 36b3726a9a1af4c48b7321484e176715f0678329 Mon Sep 17 00:00:00 2001 From: Chris Biow Date: Thu, 30 Apr 2015 14:29:54 -0400 Subject: [PATCH] Limit help option regex Added word-boundary delimiters so that embedded text such as "-h" within command line options don't trigger the usage script and exit. --- bin/spark-shell2.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/spark-shell2.cmd b/bin/spark-shell2.cmd index 02f51fe59a911..00fd30fa38d36 100644 --- a/bin/spark-shell2.cmd +++ b/bin/spark-shell2.cmd @@ -19,7 +19,7 @@ rem set SPARK_HOME=%~dp0.. -echo "%*" | findstr " --help -h" >nul +echo "%*" | findstr " \<--help\> \<-h\>" >nul if %ERRORLEVEL% equ 0 ( call :usage exit /b 0