Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #45 set command quoted #53

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const writeShim_ = (from, to, prog, args, variables) => {
const head = '@ECHO off\r\n' +
'GOTO start\r\n' +
':find_dp0\r\n' +
'SET dp0=%~dp0\r\n' +
'SET "dp0=%~dp0"\r\n' +
'EXIT /b\r\n' +
':start\r\n' +
'SETLOCAL\r\n' +
Expand Down
16 changes: 8 additions & 8 deletions tap-snapshots/test-basic.js-TAP.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`test/basic.js TAP env shebang > cmd 1`] = `
@ECHO off\\r
GOTO start\\r
:find_dp0\\r
SET dp0=%~dp0\\r
SET "dp0=%~dp0"\\r
EXIT /b\\r
:start\\r
SETLOCAL\\r
Expand Down Expand Up @@ -78,7 +78,7 @@ exports[`test/basic.js TAP env shebang with args > cmd 1`] = `
@ECHO off\\r
GOTO start\\r
:find_dp0\\r
SET dp0=%~dp0\\r
SET "dp0=%~dp0"\\r
EXIT /b\\r
:start\\r
SETLOCAL\\r
Expand Down Expand Up @@ -147,7 +147,7 @@ exports[`test/basic.js TAP env shebang with variables > cmd 1`] = `
@ECHO off\\r
GOTO start\\r
:find_dp0\\r
SET dp0=%~dp0\\r
SET "dp0=%~dp0"\\r
EXIT /b\\r
:start\\r
SETLOCAL\\r
Expand Down Expand Up @@ -217,7 +217,7 @@ exports[`test/basic.js TAP explicit shebang > cmd 1`] = `
@ECHO off\\r
GOTO start\\r
:find_dp0\\r
SET dp0=%~dp0\\r
SET "dp0=%~dp0"\\r
EXIT /b\\r
:start\\r
SETLOCAL\\r
Expand Down Expand Up @@ -286,7 +286,7 @@ exports[`test/basic.js TAP explicit shebang with args > cmd 1`] = `
@ECHO off\\r
GOTO start\\r
:find_dp0\\r
SET dp0=%~dp0\\r
SET "dp0=%~dp0"\\r
EXIT /b\\r
:start\\r
SETLOCAL\\r
Expand Down Expand Up @@ -355,7 +355,7 @@ exports[`test/basic.js TAP if exists (it does exist) > cmd 1`] = `
@ECHO off\\r
GOTO start\\r
:find_dp0\\r
SET dp0=%~dp0\\r
SET "dp0=%~dp0"\\r
EXIT /b\\r
:start\\r
SETLOCAL\\r
Expand Down Expand Up @@ -400,7 +400,7 @@ exports[`test/basic.js TAP just proceed if reading fails > cmd 1`] = `
@ECHO off\\r
GOTO start\\r
:find_dp0\\r
SET dp0=%~dp0\\r
SET "dp0=%~dp0"\\r
EXIT /b\\r
:start\\r
SETLOCAL\\r
Expand Down Expand Up @@ -445,7 +445,7 @@ exports[`test/basic.js TAP no shebang > cmd 1`] = `
@ECHO off\\r
GOTO start\\r
:find_dp0\\r
SET dp0=%~dp0\\r
SET "dp0=%~dp0"\\r
EXIT /b\\r
:start\\r
SETLOCAL\\r
Expand Down