]> git.tue.mpg.de Git - adu.git/commitdiff
Allow comments in interactive input.
authorAndre Noll <maan@systemlinux.org>
Sun, 2 Nov 2008 15:45:34 +0000 (16:45 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 2 Nov 2008 15:45:34 +0000 (16:45 +0100)
This allows to put comments into adu scripts.

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)