Allow comments in interactive input.
[adu.git] / interactive.c
index 4e4ccc7417d0165581725c298ceb4bf6a06d1d30..62ff5edb774ded49b643e14c4a94f72336f4115c 100644 (file)
@@ -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)