Module: wine Branch: master Commit: 9d63b91405122c98a314bde38210c0b2d69263a5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9d63b91405122c98a314bde382...
Author: Dan Kegel dank@kegel.com Date: Tue Feb 16 12:25:41 2010 -0800
cmd: Add test to show set "FOO=bar" should not include the quotes in the variable value.
---
programs/cmd/tests/test_builtins.cmd | 5 +++++ programs/cmd/tests/test_builtins.cmd.out | 3 +++ 2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/programs/cmd/tests/test_builtins.cmd b/programs/cmd/tests/test_builtins.cmd index db15217..04a75ba 100644 --- a/programs/cmd/tests/test_builtins.cmd +++ b/programs/cmd/tests/test_builtins.cmd @@ -9,3 +9,8 @@ echo "doublequotedword" echo "/?" echo. echo . + +echo ------------ Testing 'set' -------------- +echo set "FOO=bar" should not include the quotes in the variable value +set "FOO=bar" +echo %FOO% diff --git a/programs/cmd/tests/test_builtins.cmd.out b/programs/cmd/tests/test_builtins.cmd.out index 3e7413b..8b5202e 100644 --- a/programs/cmd/tests/test_builtins.cmd.out +++ b/programs/cmd/tests/test_builtins.cmd.out @@ -9,3 +9,6 @@ at-echoed-word "/?"
. +------------ Testing 'set' -------------- +set "FOO=bar" should not include the quotes in the variable value +bar