Ignore:
Timestamp:
Oct 6, 2007, 11:19:19 PM (18 years ago)
Author:
bird
Message:

moving globals into shinstance...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/redir.c

    r809 r1198  
    206206                break;
    207207        case NTO:
    208                 if (Cflag)
     208                if (Cflag(psh))
    209209                        oflags |= O_EXCL;
    210210                /* FALLTHROUGH */
     
    267267                len = strlen(redir->nhere.doc->narg.text);
    268268                if (len <= PIPESIZE) {
    269                         xwrite(pip[1], redir->nhere.doc->narg.text, len);
     269                        xwrite(psh, pip[1], redir->nhere.doc->narg.text, len);
    270270                        goto out;
    271271                }
     
    281281                signal(SIGPIPE, SIG_DFL);
    282282                if (redir->type == NHERE)
    283                         xwrite(pip[1], redir->nhere.doc->narg.text, len);
     283                        xwrite(psh, pip[1], redir->nhere.doc->narg.text, len);
    284284                else
    285285                        expandhere(redir->nhere.doc, pip[1]);
Note: See TracChangeset for help on using the changeset viewer.