--with-error-checking=none doesn't work
    Joachim Schrod 
    jschrod at acm.org
       
    Fri Jul 13 04:44:20 EDT 2007
    
    
  
skip at pobox.com wrote:
>     skip> Feel free to suggest other alternatives for me to try.
> 
> Thinking about it a bit, shouldn't this work and be portable?
> 
>     % echo $with_error_checking | /usr/bin/sed -e 's/^[a-z]*//' -e 's/^,//'
> 
> It gives the correct result in the current situation.  If I am interpreting
> the original r.e. correctly, the aim is to remove the first word from the
> beginning of the string plus any comma that follows it.
Actually, what also works in all seds is:
/usr/bin/sed -e 's/^[a-z]*,\{0,1\}//'
Solaris /usr/bin/sed only supports so-called simple regexps, they 
are explained in regexp(5). There is documented that the \{m,n\} 
construct only works for preceding _single-character_ REs, but not 
for parenthized REs.
	Joachim
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod				Email: jschrod at acm.org
Roedermark, Germany
    
    
More information about the XEmacs-Beta
mailing list