path: root/include
authorSergey Poznyakoff <>2018-11-15 07:58:01 (GMT)
committer Sergey Poznyakoff <>2018-11-15 07:58:01 (GMT)
commit6e4ef4c272a23ffde227689bc4e65a0523f18b4d (patch) (side-by-side diff)
tree9c47e8915e0a11ff5df86ee7849cbc54eeff3882 /include
parent82a4e4b019194d60080c1b9f34de841485f3b9e3 (diff)
Port mailutils commit 2c2e3c50d6
* include/wordsplit.h (WRDSO_ARGV): Remove. * src/wordsplit.c (expcmd): Always split command line into arguments. This fixes * tests/wsp.c: Implement internal commands, instead of calling shell ones. This fixes * tests/ Rewrite command expansion tests.
Diffstat (limited to 'include') (more/less context) (ignore whitespace changes)
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 */
#define WRDSO_BSKEEP_WORD 0x00000010
/* Handle octal escapes in words */
#define WRDSO_OESC_WORD 0x00000020

Return to:

Send suggestions and report system problems to the System administrator.