fixed bug in sed
This commit is contained in:
parent
db0f050d2b
commit
f4617dc7db
1 changed files with 5 additions and 3 deletions
|
@ -688,9 +688,11 @@ newfile(enum PTYPE type, char *name)
|
||||||
{
|
{
|
||||||
if (type == P_ARG)
|
if (type == P_ARG)
|
||||||
prog.curr = name;
|
prog.curr = name;
|
||||||
else if ((prog.bp = Bopen(name, OREAD)) == 0)
|
else {
|
||||||
quit("Cannot open pattern-file: %s\n", name);
|
if ((prog.bp = Bopen(name, OREAD)) == 0)
|
||||||
Blethal(prog.bp, nil);
|
quit("Cannot open pattern-file: %s\n", name);
|
||||||
|
Blethal(prog.bp, nil);
|
||||||
|
}
|
||||||
prog.type = type;
|
prog.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue