Changeset 1198 for trunk/src/kash/redir.c
- Timestamp:
- Oct 6, 2007, 11:19:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/redir.c
r809 r1198 206 206 break; 207 207 case NTO: 208 if (Cflag )208 if (Cflag(psh)) 209 209 oflags |= O_EXCL; 210 210 /* FALLTHROUGH */ … … 267 267 len = strlen(redir->nhere.doc->narg.text); 268 268 if (len <= PIPESIZE) { 269 xwrite(p ip[1], redir->nhere.doc->narg.text, len);269 xwrite(psh, pip[1], redir->nhere.doc->narg.text, len); 270 270 goto out; 271 271 } … … 281 281 signal(SIGPIPE, SIG_DFL); 282 282 if (redir->type == NHERE) 283 xwrite(p ip[1], redir->nhere.doc->narg.text, len);283 xwrite(psh, pip[1], redir->nhere.doc->narg.text, len); 284 284 else 285 285 expandhere(redir->nhere.doc, pip[1]);
Note:
See TracChangeset
for help on using the changeset viewer.