search for: in_quote

Displaying 7 results from an estimated 7 matches for "in_quote".

2009 Sep 11
1
[PATCH] guestfish: Enable grouping in string lists
...ed, but it's what a normal shell does. + * Not doing it risks surprising somebody. + * + * This outer loop is over complete tokens. + */ + while(*p) { + char *tok = NULL; + size_t tok_len = 0; + + /* Skip leading whitespace */ + p += strspn (p, " \t"); + + char in_quote = 0; + + /* This loop is over token 'fragments'. A token can be in multiple bits if + * it contains single quotes. We also treat both sides of an escaped quote + * as separate fragments because we can't just copy it: we have to remove + * the \. + */ + while (*p &a...
2009 Sep 11
1
[FOR REVIEW ONLY] guestfish: Enable grouping in string lists
...ed, but it's what a normal shell does. + * Not doing it risks surprising somebody. + * + * This outer loop is over complete tokens. + */ + while(*p) { + char *tok = NULL; + size_t tok_len = 0; + + /* Skip leading whitespace */ + p += strspn (p, " \t"); + + char in_quote = 0; + + /* This loop is over token 'fragments'. A token can be in multiple bits if + * it contains single quotes. We also treat a both sides of an escaped quote + * as separate fragments because we can't just copy it: we have to remove + * the \. + */ + while (*p...
2016 Oct 20
5
-e escape rule
...ow the equals symbol is escaped. I'm looking in the function: static pid_t do_cmd(char *cmd, char *machine, char *user, char **remote_argv, int remote_argc, int *f_in_p, int *f_out_p) This function splits based purely on whitespace: args[argc++] = t; while (*f != ' ' || in_quote) { // consume token... I feel that this function should also handle backslash escapes. I also checked using strace and it appears that this is the issue, but I'm open to suggestions/ideas. Kind regards, Samuel
2016 Oct 20
0
-e escape rule
...looking in the function: > > static pid_t do_cmd(char *cmd, char *machine, char *user, char > **remote_argv, int remote_argc, > int *f_in_p, int *f_out_p) > > This function splits based purely on whitespace: > > args[argc++] = t; > while (*f != ' ' || in_quote) { > // consume token... > > I feel that this function should also handle backslash escapes. > > I also checked using strace and it appears that this is the issue, but > I'm open to suggestions/ideas. > > Kind regards, > Samuel >
2016 Oct 21
2
-e escape rule
...t;> static pid_t do_cmd(char *cmd, char *machine, char *user, char >> **remote_argv, int remote_argc, >> int *f_in_p, int *f_out_p) >> >> This function splits based purely on whitespace: >> >> args[argc++] = t; >> while (*f != ' ' || in_quote) { >> // consume token... >> >> I feel that this function should also handle backslash escapes. >> >> I also checked using strace and it appears that this is the issue, but >> I'm open to suggestions/ideas. >> >> Kind regards, >> Sa...
2009 Sep 24
1
enabling more syntax-checks
...f)) + while (*buf && c_isspace (*buf)) buf++; if (!*buf) continue; @@ -1127,7 +1127,7 @@ parse_string_list (const char *str) * as separate fragments because we can't just copy it: we have to remove * the \. */ - while (*p && (!isblank (*p) || in_quote)) { + while (*p && (!c_isblank (*p) || in_quote)) { const char *end = p; /* Check if the fragment starts with a quote */ diff --git a/fish/tilde.c b/fish/tilde.c index 4085417..1c52d3e 100644 --- a/fish/tilde.c +++ b/fish/tilde.c @@ -22,7 +22,6 @@ #include <stdlib.h&gt...
2015 Nov 13
0
Wine release 1.7.55
...IEnumSTATSTG::Next reaches end of enumeration. ole32/tests: Add the tests to show that IEnumSTATSTG::Next should zero out returned stats when it reaches end of enumeration. Revert "msi: Correctly parse double quotes in the token value.". msi: Make sure to reset the 'in_quotes' state in all cases. ole32/tests: Add some tests for loading and drawing various OLE formats. ole32: Relax media type check when loading CF_METAFILEPICT format from OLE storage. ole32: Add more traces to the storage methods. widl: Avoid adding duplicate type definitions...