Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
09655aca
Commit
09655aca
authored
Aug 25, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Aug 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Misc tab fixes.
parent
eda33f22
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
builtins.c
programs/cmd/builtins.c
+4
-3
test_builtins.cmd
programs/cmd/tests/test_builtins.cmd
+6
-0
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+1
-0
No files found.
programs/cmd/builtins.c
View file @
09655aca
...
...
@@ -2098,7 +2098,8 @@ void WCMD_setshow_default (const WCHAR *command) {
NORM_IGNORECASE
|
SORT_STRINGSORT
,
command
,
2
,
parmD
,
-
1
)
==
CSTR_EQUAL
)
{
command
+=
2
;
while
(
*
command
&&
*
command
==
' '
)
command
++
;
while
(
*
command
&&
(
*
command
==
' '
||
*
command
==
'\t'
))
command
++
;
}
GetCurrentDirectoryW
(
sizeof
(
cwd
)
/
sizeof
(
WCHAR
),
cwd
);
...
...
@@ -2309,7 +2310,7 @@ void WCMD_setshow_env (WCHAR *s) {
DWORD
count
;
s
+=
2
;
while
(
*
s
&&
*
s
==
' '
)
s
++
;
while
(
*
s
&&
(
*
s
==
' '
||
*
s
==
'\t'
)
)
s
++
;
if
(
*
s
==
'\"'
)
WCMD_opt_s_strip_quotes
(
s
);
...
...
@@ -2406,7 +2407,7 @@ void WCMD_setshow_prompt (void) {
}
else
{
s
=
param1
;
while
((
*
s
==
'='
)
||
(
*
s
==
' '
))
s
++
;
while
((
*
s
==
'='
)
||
(
*
s
==
' '
)
||
(
*
s
==
'\t'
)
)
s
++
;
if
(
strlenW
(
s
)
==
0
)
{
SetEnvironmentVariableW
(
promptW
,
NULL
);
}
...
...
programs/cmd/tests/test_builtins.cmd
View file @
09655aca
...
...
@@ -325,6 +325,11 @@ cd
cd ..\..
cd
rd /Q/s foobar
mkdir foobar
cd /d@tab@foobar
cd
cd ..
rd /q/s foobar
echo ------------ Testing type ------------
echo bar> foobaz
...
...
@@ -465,6 +470,7 @@ rd /s/Q foobar
echo ...for /L
rem Some cases loop forever writing 0s, like e.g. (1,0,1), (1,a,3) or (a,b,c); those can't be tested here
for /L %%i in (1,2,0) do echo %%i
for@tab@/L %%i in (1,2,0) do echo %%i
for /L %%i in (1,2,6) do echo %%i
for /l %%i in (1 ,2,6) do echo %%i
for /L %%i in (a,2,3) do echo %%i
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
09655aca
...
...
@@ -247,6 +247,7 @@ Current dir: @pwd@\foobar@or_broken@Current dir:@space@
@pwd@\foobar\bar bak
@pwd@\foobar\bar bak
@pwd@
@pwd@\foobar
------------ Testing type ------------
@pwd@>type foobaz@space@
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment