. make sed understand \t
. install it in /bin, where minix rc expects it
This commit is contained in:
parent
ad1f2f2d78
commit
ac6e455f16
2 changed files with 6 additions and 0 deletions
|
@ -6,4 +6,6 @@
|
|||
PROG= sed
|
||||
SRCS= compile.c main.c misc.c process.c
|
||||
|
||||
BINDIR=/bin
|
||||
|
||||
.include <minix.prog.mk>
|
||||
|
|
|
@ -404,6 +404,10 @@ compile_delimited(char *p, char *d)
|
|||
*d++ = '\n';
|
||||
p += 2;
|
||||
continue;
|
||||
} else if (*p == '\\' && p[1] == 't') {
|
||||
*d++ = '\t';
|
||||
p += 2;
|
||||
continue;
|
||||
} else if (*p == '\\' && p[1] == '\\')
|
||||
*d++ = *p++;
|
||||
else if (*p == c) {
|
||||
|
|
Loading…
Reference in a new issue