From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 17 Jul 2008 20:28:32 -0400 To: 9fans@9fans.net Message-ID: <0b4d52924ef8760106d73dbc265e2e4b@coraid.com> In-Reply-To: <0dc26e34a72fb811e50d5cafcfd16402@9netics.com> References: <0dc26e34a72fb811e50d5cafcfd16402@9netics.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] sam question Topicbox-Message-UUID: eb1ac0d0-ead3-11e9-9d60-3106f5b1d025 > related to the earlier discussion, for stripping the \r at the end of > lines in windows files, i use: > > ,x/$/ c// > > where is a cut&pasted return char (yes, i could use '.' instead, > but i'm paranoid.) x doesn't seem to recognize \r as a escape > sequence. true? no they don't: sam/regexp.c and acme/regx.c both have a lex function that starts basically like this (from acme) int lex(void){ int c; c = *exprp++; switch(c){ case '\\': if(*exprp) if((c= *exprp++)=='n') c='\n'; i suppose you could also type 000d. - erik