X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fish%2Ffish.c;h=894e351da30d103d48da5586e5f76dd68afd9cc0;hp=a5fc337d2f5ef59cba5e2373c3b7386eacd6b4b1;hb=df189925e4a0e6f80b0aebbd78201db09a63daf3;hpb=f1c552c43607299bb32aecc1bf696bbc31f94dc8 diff --git a/fish/fish.c b/fish/fish.c index a5fc337..894e351 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -354,6 +354,11 @@ script (int prompt) while (*buf && isspace (*buf)) buf++; + if (!*buf) continue; + + /* If the next character is '#' then this is a comment. */ + if (*buf == '#') continue; + /* Get the command (cannot be quoted). */ len = strcspn (buf, " \t");