overload unix::escape to be useable with Cow<[u8]>#4
Conversation
|
Does this have a chance of being merged? I understand if you think it adds to much complexity, I'll just roll my own module then. |
|
Can shells deal with non-ASCII bytes with the normal |
|
I think non-ascii bytes do not need to be escaped. I‘ll do some research to
come up with some evidence.
|
|
The way I read http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html is that only |
|
I could add an integration test. For example, we could create a file in a temporary directory, call |
Unix paths are not necessarily UTF-8 so a generic way to escape them is useful. Overload
unix::escapethrough private traitUnixEscapeso it can be used with bothCow<str>andCow<[u8]>.