From: Andre Noll Date: Sun, 2 Nov 2008 15:45:34 +0000 (+0100) Subject: Allow comments in interactive input. X-Git-Tag: v0.0.4~8 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=04db8265ce0336a15b882aff5c1ab08516601267;p=adu.git Allow comments in interactive input. This allows to put comments into adu scripts. --- 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)