Commit | Line | Data |
---|---|---|
15637ed4 RG |
1 | Thu Aug 8 00:15:33 1991 David J. MacKenzie (djm at bleen) |
2 | ||
3 | * Version 1.08. | |
4 | ||
5 | * sed.c (compile_filename): If reading a file fails, read | |
6 | /dev/null instead. It's what Unix and POSIX do, effectively. | |
7 | ||
8 | * sed.c (compile_regex): The 'slash' character doesn't | |
9 | terminate the regex if it's in a character class. | |
10 | ||
11 | * sed.c (main): If given no args, or bad option, print usage | |
12 | message. | |
13 | (usage): New function. | |
14 | ||
15 | * sed.c (execute_program): Amount written for 'P' command was | |
16 | wrong. From stephend@ksr.com (Stephen Davis). | |
17 | ||
18 | Wed Aug 7 16:51:14 1991 David J. MacKenzie (djm at apple-gunkies) | |
19 | ||
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. | |
28 | ||
29 | * sed.c (setup_jump): Use isblank instead of testing for ' ' | |
30 | or '\t', for POSIX locales. | |
31 | ||
32 | * utils.c (ck_strdup): Renamed from strdup. | |
33 | * sed.c: Change callers. | |
34 | ||
35 | * sed.c, utils.c: Clean up declarations and includes to get | |
36 | rid of compiler warnings. | |
37 | ||
38 | * sed.c (main): Add long-named options. Don't complain if -n | |
39 | is given twice. | |
40 | ||
41 | Fri Aug 2 12:33:16 1991 David J. MacKenzie (djm at apple-gunkies) | |
42 | ||
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. | |
46 | ||
47 | Mon Jul 15 13:07:39 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) | |
48 | ||
49 | * sed.c (main): Add -V option to print version number. | |
50 | (USAGE): Mention -V. | |
51 | ||
52 | Mon Jul 8 01:42:22 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu) | |
53 | ||
54 | * sed.c: Define bcopy in terms of memcpy if STDC_HEADERS as | |
55 | well as if USG. | |
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 | |
60 | don't recognize \a. | |
61 | * utils.c: New file; code moved from sed.c. | |
62 | * Replace Makefile with Makefile.in and configure. | |
63 | Update README. | |
64 | ||
65 | Tue Mar 26 13:00:48 EST 1991 Jay Fenlason (hack@gnu.ai.mit.edu) | |
66 | ||
67 | * sed.c (match_address) Added a trivial cast for portability. | |
68 | ||
69 | Mon Feb 25 13:23:29 EST 1991 Jay Fenlason (hack@ai.mit.edu) | |
70 | ||
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). | |
74 | ||
75 | Initialize the fastmap in the hopes that it'll make sed faster. | |
76 | ||
77 | Thu Feb 21 13:42:27 EST 1991 Jay Fenlason (hack@ai.mti.edu) | |
78 | ||
79 | * sed.c Change panic to compile with other __STDC__ compilers. | |
80 | ||
81 | Wed Jan 30 10:46:38 EST 1991 Jay Fenlason (hack@ai.mit.edu) | |
82 | ||
83 | * sed.c Changed version number. Made new release. | |
84 | ||
85 | Tue Nov 27 15:34:51 EST 1990 Jay Fenlason (hack@ai.mit.edu) | |
86 | ||
87 | * sed.c (setup_jump) Don't blow chunks if there isn't a label | |
88 | after a b or t command. | |
89 | ||
90 | (main) Don't panic if it a branch command doesn't have | |
91 | a label to branch to. | |
92 | ||
93 | (main) Collect all the -e arguments together and parse them | |
94 | all at once. This way, -e { -e mumble -e } will work. | |
95 | ||
96 | All these small patches from David Schmidt (davids@isc-br.isc-br.com) | |
97 | ||
98 | Tue Sep 11 12:51:37 EDT 1990 Jay Fenlason (hack@ai.mit.edu) | |
99 | ||
100 | * sed.c Changed some function forward declarations to use VOID * | |
101 | instead of char * | |
102 | ||
103 | Mon Jul 16 11:12:54 EDT 1990 Jay Fenlason (hack@ai.mit.edu) | |
104 | ||
105 | * sed.c (ck_malloc) Use malloc(1) instead of malloc(0) if given | |
106 | a request for zero bytes. | |
107 | ||
108 | Tue Jun 5 02:05:37 1990 David J. MacKenzie (djm at albert.ai.mit.edu) | |
109 | ||
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 | |
117 | returns NULL. | |
118 | ||
119 | Thu Apr 5 21:41:12 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu) | |
120 | ||
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. | |
124 | ||
125 | Tue Mar 6 15:55:35 EST 1990 Jay Fenlason (hack@ai.mit.edu) | |
126 | ||
127 | * sed.c (compile_regex) Allocate 10 bytes extra space needed by | |
128 | re_compile_pattern. | |
129 | ||
130 | Sun Feb 25 16:32:10 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu) | |
131 | ||
132 | * sed.c (execute_program, case 'l'): Print \00 instead of \0. | |
133 | Print backslash as \\ not \. | |
134 | Print \xx instead of /xx. | |
135 | ||
136 | Thu Feb 1 14:02:28 EST 1990 hack@wookumz | |
137 | ||
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) | |
140 | ||
141 | Wed Sep 27 18:47:39 EDT 1989 hack@ai.mit.edu | |
142 | ||
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. | |
147 | ||
148 | Mon Sep 18 10:15:32 EDT 1989 hack@ai.mit.edu | |
149 | ||
150 | * sed.c (compile_program): define translate as unsigned char * so | |
151 | that y command will work on non-ascii characters. | |
152 | ||
153 | Changed version number to 1.06. | |
154 | ||
155 | Thu Sep 14 15:57:08 EDT 1989 hack@ai.mit.edu | |
156 | ||
157 | * sed.c (compile_program) Let programs use ; to terminate } as | |
158 | well as newline. | |
159 | ||
160 | (read_file) Print an error msg to stderr if it can't open an | |
161 | input file. | |
162 | ||
163 | Thu Mar 23 18:04:46 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu) | |
164 | ||
165 | * Makefile, sed.c: Added new copyright notice. | |
166 | ||
167 | * Makefile: Make distributions which follow the symlinks. | |
168 | ||
169 | hack@ai.mit.edu | |
170 | ||
171 | 1.05 Fixed error in 'r' (now does things in the right order) | |
172 | ||
173 | 1.04 Fixed s/re/rep/[number] | |
174 | ||
175 | 1.03 Fixes from Mike Haertel for regexps that match the | |
176 | empty string, and for Ritchie stdio (non-sticky EOF) | |
177 | ||
178 | 1.02 Fixed 't', 'b', ':' to trim leading spaces and tabs | |
179 | Fixed \\ in replacement of 's' command | |
180 | Added comments | |
181 | ||
182 | 1.01 Added s/re/rep/[digits] | |
183 | added #n as first line of script | |
184 | added filename globbing | |
185 | added 'l' command | |
186 | All in the name of POSIX | |
187 | ||
188 | 1.00 Began (thinking about) distributing this file | |
189 | \f | |
190 | Local Variables: | |
191 | mode: indented-text | |
192 | left-margin: 8 | |
193 | version-control: never | |
194 | End: |