add new | syntax.

syntax will change.
This commit is contained in:
rsc 2005-01-04 22:41:27 +00:00
parent 02f38ca68c
commit 9aa1c92f74
19 changed files with 281 additions and 83 deletions

View file

@ -103,7 +103,7 @@ expandvar(char **s)
return 0;
}
cp++;
end = charin(cp , "}");
end = shellt->charin(cp , "}");
if(end == 0){
SYNERR(-1);
fprint(2, "missing '}': %s\n", begin);
@ -128,7 +128,7 @@ extractpat(char *s, char **r, char *term, char *end)
char *cp;
Word *w;
cp = charin(s, term);
cp = shellt->charin(s, term);
if(cp){
*r = cp;
if(cp == s)