diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2006-02-03 09:08:48 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2008-01-09 16:12:04 +0100 |
commit | 1ca31d67289eb68a8c4d40bab7dfd5eee5bb6f10 (patch) | |
tree | 4065cfa2bc0bbf28cb0c32b22594c3d01b9952a2 /sed | |
parent | ef1ea7f8bb09c20debfa57bc95978404bced587b (diff) | |
download | sed-1ca31d67289eb68a8c4d40bab7dfd5eee5bb6f10.tar.gz |
fix y/[/X/ and add more testcases for the y command
2006-02-03 Paolo Bonzini <bonzini@gnu.org>
* sed/compile.c (compile_program) <case 'y'>: Pass false to match_slash.
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-62
Diffstat (limited to 'sed')
-rw-r--r-- | sed/compile.c | 6 | ||||
-rw-r--r-- | sed/execute.c | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/sed/compile.c b/sed/compile.c index 28b6405..e35608a 100644 --- a/sed/compile.c +++ b/sed/compile.c @@ -1,5 +1,5 @@ /* GNU SED, a batch stream editor. - Copyright (C) 1989,90,91,92,93,94,95,98,99,2002,2003 + Copyright (C) 1989,90,91,92,93,94,95,98,99,2002,2003,2004,2005,2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify @@ -1274,12 +1274,12 @@ compile_program(vector) char *src_buf, *dest_buf; slash = inchar(); - if ( !(b = match_slash(slash, true)) ) + if ( !(b = match_slash(slash, false)) ) bad_prog(_(UNTERM_Y_CMD)); src_buf = get_buffer(b); len = normalize_text(src_buf, size_buffer (b), TEXT_BUFFER); - if ( !(b2 = match_slash(slash, true)) ) + if ( !(b2 = match_slash(slash, false)) ) bad_prog(_(UNTERM_Y_CMD)); dest_buf = get_buffer(b2); dest_len = normalize_text(dest_buf, size_buffer (b2), TEXT_BUFFER); diff --git a/sed/execute.c b/sed/execute.c index 195604b..5e8a38a 100644 --- a/sed/execute.c +++ b/sed/execute.c @@ -1,6 +1,5 @@ - /* GNU SED, a batch stream editor. - Copyright (C) 1989,90,91,92,93,94,95,98,99,2002,2003 + Copyright (C) 1989,90,91,92,93,94,95,98,99,2002,2003,2004,2005,2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify |