Skip to content

Commit 04eee4f

Browse files
committed
Use <nul set /p
1 parent e0f8dbe commit 04eee4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-runtime/aws-config/common/test/aws/sdk/kotlin/runtime/auth/credentials/ExecuteCommandTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class ExecuteCommandTest {
9898
@Test
9999
fun testErrorReturnsStderr() = runTest {
100100
val errorCommand = when (provider.osInfo().family) {
101-
OsFamily.Windows -> "echo \"Error message\" 1>&2 & exit /b 13"
101+
OsFamily.Windows -> "<nul set /p=\"Error message\" 1>&2 & exit /b 13"
102102
else -> "echo 'Error message' >&2; exit 13"
103103
}
104104

0 commit comments

Comments
 (0)