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
Consider it an error if an undefined shell variable is expanded.
.SH RETURN VALUE
In case of success 0 is returned.
In case of error
one of the following five values is returned.
On success,
.BR wordexp ()
returns 0.
On failure,
.BR wordexp ()
returns one of the following nonzero values:
.TP
.B WRDE_BADCHAR
Illegal occurrence of newline or one of |, &, ;, <, >, (, ), {, }.