Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com Date: Thu, 20 Jan 2000 21:37:47 -0500 Message-Id: <200001210237.VAA13933@envy.delorie.com> From: DJ Delorie To: corinna AT vinschen DOT de CC: cygwin-developers AT sourceware DOT cygnus DOT com In-reply-to: <3887C146.EC3A310F@vinschen.de> (message from Corinna Vinschen on Fri, 21 Jan 2000 03:15:34 +0100) Subject: Re: Suggestion for regtool References: <3886E0DE DOT EE734589 AT vinschen DOT de> <200001201852 DOT NAA28114 AT envy DOT delorie DOT com> <3887C146 DOT EC3A310F AT vinschen DOT de> 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.