summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/commands.c b/commands.c
index f522e9e..93d2e39 100644
--- a/commands.c
+++ b/commands.c
@@ -596,7 +596,7 @@ print_commands (const struct commands *cmds)
{
const char *s;
- fputs (_("# commands to execute"), stdout);
+ fputs (_("# recipe to execute"), stdout);
if (cmds->fileinfo.filenm == 0)
puts (_(" (built-in):"));
@@ -609,15 +609,12 @@ print_commands (const struct commands *cmds)
{
const char *end;
- while (isspace ((unsigned char)*s))
- ++s;
-
end = strchr (s, '\n');
if (end == 0)
end = s + strlen (s);
- printf ("\t%.*s\n", (int) (end - s), s);
+ printf ("%c%.*s\n", cmd_prefix, (int) (end - s), s);
- s = end;
+ s = end + (end[0] == '\n');
}
}