[PATCH 5/9] CMD: echo command needs to ignore whitespace

Jason Edmeades jason.edmeades at googlemail.com
Tue Sep 7 17:59:45 CDT 2010


Reported problem is "echo on > file" echos the word on to the file,
but the underlying issue was any whitespace around the 'on' word
caused problems. This patch ignores whitespace and handles the case
where the first word of a sentence is on or off.

Fixes bug 21132

Note: Be aware this patch adds whitespace to the end of some of the
test cmd lines, so please do not strip whitespaces from this patch!!!
---
 programs/cmd/batch.c                     |    6 +++---
 programs/cmd/builtins.c                  |   28 ++++++++++++++++++++--------
 programs/cmd/tests/test_builtins.cmd     |    6 ++++++
 programs/cmd/tests/test_builtins.cmd.exp |    2 ++
 programs/cmd/wcmd.h                      |    2 +-
 5 files changed, 32 insertions(+), 12 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-CMD-echo-command-needs-to-ignore-whitespace.txt
Type: text/x-patch
Size: 3987 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100907/552a6eec/attachment.bin>


More information about the wine-patches mailing list