Does anybody knows wordexp()
behaviour with strings, which contained '|'
or '&'
.
I use wordexp(str, &res, WRDE_UNDEF)
, but with all strings, which contained '|'
or '&'
wordexp()
returns WRDE_BADCHAR
. I want that wordexp()
doesn't report this.
E.g. I want that wordexp("a & b", &res, WRDE_UNDEF)
returns wordexp_t
with 3 strings "a" "&" "b"
.