wordexp.3: Minor wording fixes in RETURN VALUE

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2021-01-07 07:28:26 +01:00
parent 30b0d8d97e
commit 3cf2958737
1 changed files with 6 additions and 3 deletions

View File

@ -158,9 +158,12 @@ is not to be redirected.
.B WRDE_UNDEF .B WRDE_UNDEF
Consider it an error if an undefined shell variable is expanded. Consider it an error if an undefined shell variable is expanded.
.SH RETURN VALUE .SH RETURN VALUE
In case of success 0 is returned. On success,
In case of error .BR wordexp ()
one of the following five values is returned. returns 0.
On failure,
.BR wordexp ()
returns one of the following nonzero values:
.TP .TP
.B WRDE_BADCHAR .B WRDE_BADCHAR
Illegal occurrence of newline or one of |, &, ;, <, >, (, ), {, }. Illegal occurrence of newline or one of |, &, ;, <, >, (, ), {, }.