[PATCH 4/7] CMD: echo command needs to ignore whitespace

Jason Edmeades jason.edmeades at googlemail.com
Fri Sep 3 18:47:51 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
---
 programs/cmd/batch.c                     |    6 +++---
 programs/cmd/builtins.c                  |   30 +++++++++++++++++++++---------
 programs/cmd/tests/test_builtins.cmd     |    6 ++++++
 programs/cmd/tests/test_builtins.cmd.exp |    2 ++
 programs/cmd/wcmd.h                      |    2 +-
 5 files changed, 33 insertions(+), 13 deletions(-)

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


More information about the wine-patches mailing list