Update docs

This commit is contained in:
Sergey Poznyakoff 2018-11-15 10:14:33 +02:00
parent 5bec17fbbb
commit 14c94c292e

View file

@ -360,11 +360,10 @@ The substitution function should be defined as follows:
First \fIlen\fR bytes of \fIcmd\fR contain the command invocation as First \fIlen\fR bytes of \fIcmd\fR contain the command invocation as
it appeared between it appeared between
.BR $( and ), .BR $( and ),
with all expansions performed. If the with all expansions performed.
.I WRDSO_ARGV .PP
option is set, the parameter \fIargv\fR contains the command line split into The \fIargv\fR parameter contains the command
words using the same settings as the input \fIws\fR structure. line split into words using the same settings as the input \fIws\fR structure.
Otherwise, \fIargv\fR is \fBNULL\fR.
.PP .PP
The \fIclos\fR parameter supplies user-specific data, passed in the The \fIclos\fR parameter supplies user-specific data, passed in the
\fIws_closure\fR member). \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 data returned in \fBret\fR must be allocated using
.BR malloc (3). .BR malloc (3).
If the The parameter \fBargv\fR contains the command split into
.I WRDSO_ARGV
option is set, the parameter \fBargv\fR contains the command split into
words using the same settings as the input \fIws\fR structure, with words using the same settings as the input \fIws\fR structure, with
command substitution disabled. command substitution disabled.
@ -822,10 +819,6 @@ Output error message if pathname expansion produces empty string.
.B WRDSO_DOTGLOB .B WRDSO_DOTGLOB
During pathname expansion allow a leading period to be matched by During pathname expansion allow a leading period to be matched by
metacharacters. 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 .PP
.TP .TP
.B WRDSO_BSKEEP_WORD .B WRDSO_BSKEEP_WORD