From 04db8265ce0336a15b882aff5c1ab08516601267 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 2 Nov 2008 16:45:34 +0100 Subject: [PATCH] Allow comments in interactive input. This allows to put comments into adu scripts. --- interactive.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interactive.c b/interactive.c index 4e4ccc7..62ff5ed 100644 --- a/interactive.c +++ b/interactive.c @@ -121,6 +121,8 @@ static int exec_interactive_command(char *line) if (!*line) return 1; /* OK, we have a non-empty line */ + if (*line == '#') + return 1; cmd = adu_strdup(line); args = cmd + strcspn(cmd, delim); if (!*args) -- 2.39.2