From aee564cf4bc8616385493580f5375c3368647653 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Mon, 14 Nov 2005 21:20:36 +1100 Subject: [BUILTIN] Fix \c spillage across echo commands On Thu, Nov 03, 2005 at 07:16:53PM +0100, Mike Hommey wrote: > Here is a simple test case: > > #!/bin/dash > echo test\\ test > echo '\c' > echo test\\ test > > it outputs: > test\ test > test\ > > This is due to mis-usage of a global variable. See attached patch for a > fix. Instead of setting rval when \c is detected, this is now set in the return value of conv_escape_str. This prevents the spillage reported in http://bugs.debian.org/337294. --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index a8def74..20eee4d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-11-14 Herbert Xu + + * Fix \c spillage across echo commands. + 2005-11-13 Herbert Xu * Remove unnecessary truncation in _STPUTC. -- cgit 1.4.1