diff options
author | Mark Whitley <markw@lineo.com> | 2000-07-14 23:24:00 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2000-07-14 23:24:00 +0000 |
commit | 464c5de00d3dfb5f01e866f703d95bbb2bb9443c (patch) | |
tree | c770d2ac4df0293c245dc246f93abf500545d865 /coreutils/cut.c | |
parent | 70705d7c9681b4ea870ea11d0c569d81e5822169 (diff) |
Fixed a couple of buglets:
- add_cmd_str: segv's were being generated if there was a '# comment' line
(and probably other kinds of lines, too) that was not followed by a
semi-colon or whitespace
- parse_edit_cmd: was returning a wrong number (too low) for the index; it
was not accounting for backslashes eaten, for the fact that we start at the
3rd index in the string, or for the fact that we add an extra newline.
- parse_cmd_str: was returning a wrong number (again, too low) for the index
in the case of single-letter commands (p,d). There was some
over-compensation for this in the 'return' stmt at the end which also
needed some help.
- load_cmd_file: was not eating trailing newlines off the line read from the
command file. This had the deleterious effect of printing an extra newlines
after text displayed from edit (i,a,c) commands.
Diffstat (limited to 'coreutils/cut.c')
0 files changed, 0 insertions, 0 deletions