delorie.com/archives/browse.cgi | search |
No, just a simple backslash checker: for (sp=dp=buf; *sp; sp++) if (*sp == '\\') *dp++ = *++sp; else if (*sp == '/') *dp++ = *sp; else *dp++ = *sp; I just want the meaning of '\\' to not be dependent on the character following it. I hadn't thought of adding codes for newline etc, but I can see how that would be useful. What does bash support? Another option is to use HTTP or MIME quoting, like %30 is a '0' or =45 for 'E'. I'm not sure which would be more "natural" for cygwin users.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |