Crate wordexp
Source - Wordexp
- Wrapper for C struct: wordexp_t
- WordexpError
- Errors returned from wordexp()
- WordexpErrorType
- Errors types for WordexpError
- WRDE_APPEND
- Insert we_offs initial Nones in the array we_wordv. (These are not counted in the returned we_wordc.)
- WRDE_BADCHAR
- Illegal occurrence of newline or one of |, &, ;, <, >, (, ), {, }.
- WRDE_BADVAL
- An undefined shell variable was referenced, and the WRDE_UNDEF flag told us to consider this an error.
- WRDE_CMDSUB
- Command substitution occurred, and the WRDE_NOCMD flag told us to consider this an error.
- WRDE_DOOFFS
- Append the words found to the array resulting from a previous call.
- WRDE_NOCMD
- Don’t do command substitution.
- WRDE_NOSPACE
- Out of memory.
- WRDE_REUSE
- The argument p resulted from a previous call to wordexp(), and wordfree() was not called. Reuse the allocated storage.
- WRDE_SHOWERR
- Normally during command substitution stderr is redirected to /dev/null. This flag specifies that stderr is not to be redirected.
- WRDE_SYNTAX
- Shell syntax error, such as unbalanced parentheses or unmatched quotes.
- WRDE_UNDEF
- Consider it an error if an undefined shell variable is expanded.
- wordexp
- Should works exactly like how wordexp() works in C