From 14c94c292e32e8cf8ba98c79c855860206e6624f Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 15 Nov 2018 10:14:33 +0200 Subject: [PATCH] Update docs --- doc/wordsplit.3 | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/doc/wordsplit.3 b/doc/wordsplit.3 index c3149fe..1a6f80b 100644 --- a/doc/wordsplit.3 +++ b/doc/wordsplit.3 @@ -360,11 +360,10 @@ The substitution function should be defined as follows: First \fIlen\fR bytes of \fIcmd\fR contain the command invocation as it appeared between .BR $( and ), -with all expansions performed. If the -.I WRDSO_ARGV -option is set, the parameter \fIargv\fR contains the command line split into -words using the same settings as the input \fIws\fR structure. -Otherwise, \fIargv\fR is \fBNULL\fR. +with all expansions performed. +.PP +The \fIargv\fR parameter contains the command +line split into words using the same settings as the input \fIws\fR structure. .PP The \fIclos\fR parameter supplies user-specific data, passed in the \fIws_closure\fR member). @@ -634,9 +633,7 @@ In any case (whether returning \fB0\fR or \fBWRDSE_USERERR\fR) , the data returned in \fBret\fR must be allocated using .BR malloc (3). -If the -.I WRDSO_ARGV -option is set, the parameter \fBargv\fR contains the command split into +The parameter \fBargv\fR contains the command split into words using the same settings as the input \fIws\fR structure, with command substitution disabled. @@ -822,10 +819,6 @@ Output error message if pathname expansion produces empty string. .B WRDSO_DOTGLOB During pathname expansion allow a leading period to be matched by metacharacters. -.TP -.B WRDSO_ARGV -Split command invocation into words and pass the result to the -\fIws_command\fR function in \fIargv\fR parameter. .PP .TP .B WRDSO_BSKEEP_WORD