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

@ -28,7 +28,7 @@ assline(Biobuf *bp, Bufblock *buf)
case '\'':
case '"':
rinsert(buf, c);
if (escapetoken(bp, buf, 1, c) == 0)
if (shellt->escapetoken(bp, buf, 1, c) == 0)
Exit();
break;
case '`':
@ -87,14 +87,14 @@ bquote(Biobuf *bp, Bufblock *buf)
insert(buf,0);
buf->current = buf->start+start;
execinit();
execsh(0, buf->current, buf, envy);
execsh(0, buf->current, buf, envy, shellt, shellcmd);
return 1;
}
if(c == '\n')
break;
if(c == '\'' || c == '"' || c == '\\'){
insert(buf, c);
if(!escapetoken(bp, buf, 1, c))
if(!shellt->escapetoken(bp, buf, 1, c))
return 0;
continue;
}