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)
|
||||
prog.curr = name;
|
||||
else if ((prog.bp = Bopen(name, OREAD)) == 0)
|
||||
quit("Cannot open pattern-file: %s\n", name);
|
||||
Blethal(prog.bp, nil);
|
||||
else {
|
||||
if ((prog.bp = Bopen(name, OREAD)) == 0)
|
||||
quit("Cannot open pattern-file: %s\n", name);
|
||||
Blethal(prog.bp, nil);
|
||||
}
|
||||
prog.type = type;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue