summaryrefslogtreecommitdiff
path: root/make_cmd.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2001-04-06 19:14:31 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:53 +0000
commit28ef6c316f1aff914bb95ac09787a3c83c1815fd (patch)
tree2812fe7ffc9beec4f99856906ddfcafda54cf16a /make_cmd.c
parentbb70624e964126b7ac4ff085ba163a9c35ffa18f (diff)
downloadbash-28ef6c316f1aff914bb95ac09787a3c83c1815fd.tar.gz
Imported from ../bash-2.05.tar.gz.
Diffstat (limited to 'make_cmd.c')
-rw-r--r--make_cmd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/make_cmd.c b/make_cmd.c
index 867484ff..64f0379e 100644
--- a/make_cmd.c
+++ b/make_cmd.c
@@ -32,6 +32,7 @@ Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
# include <unistd.h>
#endif
+#include "syntax.h"
#include "command.h"
#include "general.h"
#include "error.h"
@@ -250,7 +251,7 @@ make_arith_for_command (exprs, action, lineno)
start = s;
/* skip to the semicolon or EOS */
while (*s && *s != ';')
- s++;
+ s++;
t = (s > start) ? substring (start, 0, s - start) : (char *)NULL;
@@ -270,7 +271,7 @@ make_arith_for_command (exprs, action, lineno)
FREE (t);
if (*s == '\0')
- break;
+ break;
s++; /* skip over semicolon */
}
@@ -569,7 +570,7 @@ make_here_document (temp)
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. */
@@ -581,7 +582,7 @@ make_here_document (temp)
}
if (*line == 0)
- continue;
+ continue;
if (STREQN (line, redir_word, redir_len) && line[redir_len] == '\n')
goto document_done;