projects
/
adu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f101e2e
)
Allow comments in interactive input.
author
Andre Noll
<maan@systemlinux.org>
Sun, 2 Nov 2008 15:45:34 +0000
(16:45 +0100)
committer
Andre 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
patch
|
blob
|
history
diff --git
a/interactive.c
b/interactive.c
index 4e4ccc7417d0165581725c298ceb4bf6a06d1d30..62ff5edb774ded49b643e14c4a94f72336f4115c 100644
(file)
--- 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)