1 Thu Aug 8 00:15:33 1991 David J. MacKenzie (djm at bleen)
5 * sed.c (compile_filename): If reading a file fails, read
6 /dev/null instead. It's what Unix and POSIX do, effectively.
8 * sed.c (compile_regex): The 'slash' character doesn't
9 terminate the regex if it's in a character class.
11 * sed.c (main): If given no args, or bad option, print usage
13 (usage): New function.
15 * sed.c (execute_program): Amount written for 'P' command was
16 wrong. From stephend@ksr.com (Stephen Davis).
18 Wed Aug 7 16:51:14 1991 David J. MacKenzie (djm at apple-gunkies)
20 * sed.c (append_pattern_space): Check for buffer full before
21 instead of after writing to buffer. Don't need to test for
22 EOF initially anymore, due to the next change.
23 (execute_program): For 'n' and 'N' commands, if eof is reached
24 in input, quit the script like Unix sed does.
25 Fix memory allocation problems for 'a' and 'r' commands.
26 (compile_program): Fix off by one error in processing comments.
27 All of the above are from Tapani Tarvainen, tarvaine@tukki.jyu.fi.
29 * sed.c (setup_jump): Use isblank instead of testing for ' '
30 or '\t', for POSIX locales.
32 * utils.c (ck_strdup): Renamed from strdup.
33 * sed.c: Change callers.
35 * sed.c, utils.c: Clean up declarations and includes to get
36 rid of compiler warnings.
38 * sed.c (main): Add long-named options. Don't complain if -n
41 Fri Aug 2 12:33:16 1991 David J. MacKenzie (djm at apple-gunkies)
43 * configure: Support +srcdir arg. Create config.status and
44 remove it and Makefile if interrupted while creating them.
45 * Makefile.in: Change DESTDIR to prefix.
47 Mon Jul 15 13:07:39 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu)
49 * sed.c (main): Add -V option to print version number.
52 Mon Jul 8 01:42:22 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu)
54 * sed.c: Define bcopy in terms of memcpy if STDC_HEADERS as
56 (compile_filename): Don't glob filename (for 'r' and 'w'
57 commands). Unix sed doesn't do it and it's not very useful,
58 since it can only match 0 or 1 files.
59 (execute_program): Change '\a' to 007 since some compilers
61 * utils.c: New file; code moved from sed.c.
62 * Replace Makefile with Makefile.in and configure.
65 Tue Mar 26 13:00:48 EST 1991 Jay Fenlason (hack@gnu.ai.mit.edu)
67 * sed.c (match_address) Added a trivial cast for portability.
69 Mon Feb 25 13:23:29 EST 1991 Jay Fenlason (hack@ai.mit.edu)
71 * sed.c Changed 's' command to work with latest version of regex()
72 routines, which mysteriously changed somewhere in there. . .
73 A one-line patch from David Eckelkamp (eckelkamp@mcc.com).
75 Initialize the fastmap in the hopes that it'll make sed faster.
77 Thu Feb 21 13:42:27 EST 1991 Jay Fenlason (hack@ai.mti.edu)
79 * sed.c Change panic to compile with other __STDC__ compilers.
81 Wed Jan 30 10:46:38 EST 1991 Jay Fenlason (hack@ai.mit.edu)
83 * sed.c Changed version number. Made new release.
85 Tue Nov 27 15:34:51 EST 1990 Jay Fenlason (hack@ai.mit.edu)
87 * sed.c (setup_jump) Don't blow chunks if there isn't a label
88 after a b or t command.
90 (main) Don't panic if it a branch command doesn't have
93 (main) Collect all the -e arguments together and parse them
94 all at once. This way, -e { -e mumble -e } will work.
96 All these small patches from David Schmidt (davids@isc-br.isc-br.com)
98 Tue Sep 11 12:51:37 EDT 1990 Jay Fenlason (hack@ai.mit.edu)
100 * sed.c Changed some function forward declarations to use VOID *
103 Mon Jul 16 11:12:54 EDT 1990 Jay Fenlason (hack@ai.mit.edu)
105 * sed.c (ck_malloc) Use malloc(1) instead of malloc(0) if given
106 a request for zero bytes.
108 Tue Jun 5 02:05:37 1990 David J. MacKenzie (djm at albert.ai.mit.edu)
110 * sed.c: Remove excess newlines from calls to panic.
111 Reformat some comments to fit in 79 columns.
112 Base whether to use void * on __STDC__, not __GNU__.
113 (main): Add missing arg when printing usage message.
114 Print usage if given invalid arg.
115 (panic) [__STDC__]: Add missing ", ...".
116 (compile_filename): Print correct error message if glob_filename
119 Thu Apr 5 21:41:12 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
121 * sed.c (execute_program, case 'r'): When need to realloc append.text,
122 multiply append.alloc by 2 instead of adding
123 cur_cmd->x.cmd_txt.text_len.
125 Tue Mar 6 15:55:35 EST 1990 Jay Fenlason (hack@ai.mit.edu)
127 * sed.c (compile_regex) Allocate 10 bytes extra space needed by
130 Sun Feb 25 16:32:10 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
132 * sed.c (execute_program, case 'l'): Print \00 instead of \0.
133 Print backslash as \\ not \.
134 Print \xx instead of /xx.
136 Thu Feb 1 14:02:28 EST 1990 hack@wookumz
138 * sed.c (memchr) Use () inside inner loop so it will work correctly.
139 A two character patch from Robert A Bruce (rab@allspice.berkeley.edu)
141 Wed Sep 27 18:47:39 EDT 1989 hack@ai.mit.edu
143 * sed.c (compile_regex) New function. When compiling regex,
144 turn ^ into \` and $ into \' so that they won't match on embedded
145 newlines. UN*X pattern matching is a crock.
146 (compile_program, compile_address) call compile_regex.
148 Mon Sep 18 10:15:32 EDT 1989 hack@ai.mit.edu
150 * sed.c (compile_program): define translate as unsigned char * so
151 that y command will work on non-ascii characters.
153 Changed version number to 1.06.
155 Thu Sep 14 15:57:08 EDT 1989 hack@ai.mit.edu
157 * sed.c (compile_program) Let programs use ; to terminate } as
160 (read_file) Print an error msg to stderr if it can't open an
163 Thu Mar 23 18:04:46 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
165 * Makefile, sed.c: Added new copyright notice.
167 * Makefile: Make distributions which follow the symlinks.
171 1.05 Fixed error in 'r' (now does things in the right order)
173 1.04 Fixed s/re/rep/[number]
175 1.03 Fixes from Mike Haertel for regexps that match the
176 empty string, and for Ritchie stdio (non-sticky EOF)
178 1.02 Fixed 't', 'b', ':' to trim leading spaces and tabs
179 Fixed \\ in replacement of 's' command
182 1.01 Added s/re/rep/[digits]
183 added #n as first line of script
184 added filename globbing
186 All in the name of POSIX
188 1.00 Began (thinking about) distributing this file
193 version-control: never