Skip to content

Commit dafe0fb

Browse files
committed
Portable shells: revert error checking syntax, use print instead of printf
The print avoids the need to escape any characters.
1 parent e02ffe7 commit dafe0fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

share/portable/portableshell.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ echo Welcome to Strawberry Perl Portable Edition!
3434
echo * URL - https://www.strawberryperl.com/
3535
echo * See README.TXT for more info
3636
echo ----------------------------------------------
37-
perl -MConfig -e "printf("""Perl executable: %%s\nPerl version : %%vd / $Config{archname}\n\n""", $^X, $^V)" 2>nul
38-
if %ERRORLEVEL% == "1" echo FATAL ERROR: 'perl' does not work; check if your strawberry pack is complete!
37+
perl -MConfig -e "print(qq{Perl executable: $^X\nPerl version : $^V / $Config{archname}\n\n})" 2>nul
38+
if ERRORLEVEL==1 echo FATAL ERROR: 'perl' does not work; check if your strawberry pack is complete!
3939

4040
cmd /K
4141

share/portable/portableshell.pdl.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ echo or if previous fails: ppm PDL::Any::Module
4141
echo * or you can use dev tools like: gcc, g++, gfortran, gmake
4242
echo * see README.TXT for more info
4343
echo ----------------------------------------------
44-
perl -MConfig -MPDL -e "printf("""Perl executable: %%s\nPerl version : %%vd / $Config{archname}\nPDL version : %%s\n\n""", $^X, $^V, $PDL::VERSION)" 2>nul
45-
if %ERRORLEVEL% == "1" echo FATAL ERROR: 'perl' does not work; check if your strawberry pack is complete!
44+
perl -MConfig -MPDL -e "print(qq{Perl executable: $^X\nPerl version : $^V / $Config{archname}\nPDL version : $PDL::VERSION\n\n})" 2>nul
45+
if ERRORLEVEL==1 echo FATAL ERROR: 'perl' does not work; check if your strawberry pack is complete!
4646

4747
cmd /K
4848

0 commit comments

Comments
 (0)