diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-11-15 09:58:01 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-11-15 09:58:01 +0200 |
commit | 6e4ef4c272a23ffde227689bc4e65a0523f18b4d (patch) | |
tree | 9c47e8915e0a11ff5df86ee7849cbc54eeff3882 /include | |
parent | 82a4e4b019194d60080c1b9f34de841485f3b9e3 (diff) | |
download | grecs-6e4ef4c272a23ffde227689bc4e65a0523f18b4d.tar.gz grecs-6e4ef4c272a23ffde227689bc4e65a0523f18b4d.tar.bz2 |
Port mailutils commit 2c2e3c50d6
* include/wordsplit.h (WRDSO_ARGV): Remove.
* src/wordsplit.c (expcmd): Always split command line into arguments.
This fixes https://savannah.gnu.org/bugs/?54830
* tests/wsp.c: Implement internal commands, instead of
calling shell ones. This fixes https://savannah.gnu.org/bugs/?54829.
* tests/wordsplit.at: Rewrite command expansion tests.
Diffstat (limited to 'include')
-rw-r--r-- | include/wordsplit.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/wordsplit.h b/include/wordsplit.h index 7229df3..1a047f7 100644 --- a/include/wordsplit.h +++ b/include/wordsplit.h @@ -88,9 +88,8 @@ struct wordsplit void *clos); /* [Input] (!WRDSF_NOCMD) Returns in the memory location pointed to by RET the expansion of - the command CMD (LEN bytes long). If WRDSO_ARGV - option is set, ARGV contains CMD split out to - words. Otherwise ARGV is NULL. + the command CMD (LEN bytes long). On input, + ARGV contains CMD split out to words. See ws_getvar for a discussion of possible return values. */ @@ -196,9 +195,10 @@ struct wordsplit #define WRDSO_FAILGLOB 0x00000002 /* Allow a leading period to be matched by metacharacters. */ #define WRDSO_DOTGLOB 0x00000004 -/* ws_command needs argv parameter */ +#if 0 /* Unused value */ #define WRDSO_ARGV 0x00000008 /* Keep backslash in unrecognized escape sequences in words */ +#endif #define WRDSO_BSKEEP_WORD 0x00000010 /* Handle octal escapes in words */ #define WRDSO_OESC_WORD 0x00000020 |