# include <unistd.h>
#endif
+#include "syntax.h"
#include "command.h"
#include "general.h"
#include "error.h"
start = s;
/* skip to the semicolon or EOS */
while (*s && *s != ';')
- s++;
+ s++;
t = (s > start) ? substring (start, 0, s - start) : (char *)NULL;
FREE (t);
if (*s == '\0')
- break;
+ break;
s++; /* skip over semicolon */
}
line_number++;
if (kill_leading && *line)
- {
+ {
/* Hack: To be compatible with some Bourne shells, we
check the word before stripping the whitespace. This
is a hack, though. */
}
if (*line == 0)
- continue;
+ continue;
if (STREQN (line, redir_word, redir_len) && line[redir_len] == '\n')
goto document_done;