Home | History | Annotate | Download | only in sh

Lines Matching defs:eofmark

85 	char *eofmark;		/* string indicating end of input */
178 heredoclist->startline, heredoclist->eofmark);
802 here->eofmark = wordtext;
826 checkend(int c, char * const eofmark, const int striptabs)
834 if (*eofmark == '\0')
838 if (c == *eofmark) {
842 for (q = eofmark + 1; c2 = pgetc(), *q != '\0' && c2 == *q; q++)
855 pushstring(eofmark + 1, q - (eofmark + 1), NULL);
857 } else if (c == '\n' && *eofmark == '\0') {
871 slurp_heredoc(char *const eofmark, const int striptabs, const int sq)
880 * If we hit EOF on the input, and the eofmark is a null string ('')
881 * we consider this empty line to be the eofmark, and exit without err.
883 if (c == PEOF && *eofmark != '\0')
888 while ((c = checkend(c, eofmark, striptabs)) != PEOF) {
892 * in single quoted mode (eofmark quoted)
894 * for the eofmark - everything saved literally.
904 * In double quoted (non-quoted eofmark)
925 break; /* look for eofmark */
931 * finding the eofmark, whether the EOF comes before
946 plinno - lines, sq ? "quoted " : "", eofmark,
983 l = slurp_heredoc(here->eofmark, here->striptabs,
1207 * If eofmark is NULL, read a word or a redirection symbol. If eofmark
1208 * is not NULL, read a here document. In the latter case, eofmark is the