summaryrefslogtreecommitdiff
path: root/make_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'make_cmd.c')
-rw-r--r--make_cmd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/make_cmd.c b/make_cmd.c
index df20010..6d5409c 100644
--- a/make_cmd.c
+++ b/make_cmd.c
@@ -610,6 +610,11 @@ make_here_document (temp)
line = full_line;
line_number++;
+ /* If set -v is in effect, echo the line read. read_secondary_line/
+ read_a_line leaves the newline at the end, so don't print another. */
+ if (echo_input_at_read)
+ fprintf (stderr, "%s", line);
+
if (kill_leading && *line)
{
/* Hack: To be compatible with some Bourne shells, we
@@ -750,7 +755,6 @@ make_function_def (name, command, lineno, lstart)
#if defined (ARRAY_VARS)
SHELL_VAR *bash_source_v;
ARRAY *bash_source_a;
- char *t;
#endif
temp = (FUNCTION_DEF *)xmalloc (sizeof (FUNCTION_DEF));