Glenn L McGrath
|
c1d95076f0
Fixes block commands to correctly identify end of block, recognise the #n directive, fix substitue command when regex isnt specified
|
21 years ago |
Glenn L McGrath
|
7ce9e247f0
Add hold space commands 'g', 'h', 'x'
|
21 years ago |
Glenn L McGrath
|
c6adada158
Rename "line" to pattern_space to be more descriptive and closer to the POSIX description
|
21 years ago |
Glenn L McGrath
|
9a52bb6878
Group common string
|
21 years ago |
Glenn L McGrath
|
30b47df86b
Small fix for sed 'y' command
|
21 years ago |
Glenn L McGrath
|
f01b46d7dd
sed 'y' command, simplify some other code
|
21 years ago |
Glenn L McGrath
|
0c51832b60
Experimental support for embeded newline. (im evil)
|
21 years ago |
Glenn L McGrath
|
a0f0f0cf76
Still fine tunning the printing of the substitute command
|
21 years ago |
Glenn L McGrath
|
595a6a4199
sed 't' branching command
|
21 years ago |
Glenn L McGrath
|
ccd43a8301
Fix sed 's' command's 'p' flag, so it can print line twice
|
21 years ago |
Glenn L McGrath
|
b08e3e8c2e
fix q command
|
21 years ago |
Glenn L McGrath
|
961c6c19da
Add basic branching support, sed ':' and 'b' commands
|
21 years ago |
Glenn L McGrath
|
56c633c139
make sed cleanup use linked list
|
21 years ago |
Glenn L McGrath
|
c949bfa555
Use a linked list for sed commands in preparation for branching support
|
21 years ago |
Manuel Novoa III
|
cad5364599
Major coreutils update.
|
21 years ago |
Glenn L McGrath
|
e01f9662a5
Match newlines, this fixes matching of ^ or $ when there is a '\n' in the pattern being matched. This fixes cases when the N command is used.
|
21 years ago |
Glenn L McGrath
|
2971ef1730
Fix a bug that corrupted the string followed commands that had no arguments (Closes #1304)
|
21 years ago |
Glenn L McGrath
|
4157a8a71e
fix n, add N, P
|
21 years ago |
Glenn L McGrath
|
ff724fb076
add the 'n' command
|
21 years ago |
Glenn L McGrath
|
bed4033e96
Add the q (quit) option
|
21 years ago |
Glenn L McGrath
|
f3bd7c4631
Fix a delimiter matching bug i introduced.
|
21 years ago |
Glenn L McGrath
|
f50ce3135f
Support grouped commands, i.e. {cmd1;cmd2}
|
21 years ago |
Glenn L McGrath
|
4c6523a90b
alloc array for commands, use string ptr in parse_command_string()
|
21 years ago |
Glenn L McGrath
|
e7a8bc949b
use typedef for struct sed_cmd
|
21 years ago |
Glenn L McGrath
|
1fb446795d
redo get_addres(). save some space. possible fix a bug where the command might be set to 0 if no second address is given. dont parse sed_cmd struct to get_address, we only need the delim field.
|
21 years ago |
Glenn L McGrath
|
2f8a401772
Woops, remove the code i didnt mean to commit
|
21 years ago |
Glenn L McGrath
|
d5eadea970
Mention the opengroup sed reference, add a check which is disabled at present.
|
21 years ago |
Glenn L McGrath
|
505bd0f15a
Fix matching for the $ address (last line)
|
21 years ago |
Glenn L McGrath
|
0a65e190f4
Support the '=' command
|
22 years ago |
Aaron Lehmann
|
a170e1c858
Change if(x)free(x); to free(x);
|
22 years ago |