#12821: testcc.sh: allow $CC to contain multiple words
----------------------------------+-----------------------------------------
       Reporter:  jdemeyer        |         Owner:  jdemeyer      
           Type:  defect          |        Status:  needs_review  
       Priority:  major           |     Milestone:  sage-5.0      
      Component:  build           |    Resolution:                
       Keywords:                  |   Work issues:                
Report Upstream:  N/A             |     Reviewers:  Leif Leonhardy
        Authors:  Jeroen Demeyer  |     Merged in:                
   Dependencies:                  |      Stopgaps:                
----------------------------------+-----------------------------------------

Comment (by leif):

 Replying to [comment:27 jdemeyer]:
 > Replying to [comment:26 leif]:
 > > Replying to [comment:25 jdemeyer]:
 > > > Replying to [comment:20 leif]:
 > > > >  Using `sed -n '/^[A-Z]/s/ //gp'` is much faster than `sed -n 's/
 //g;/^[A-Z]/p'`.
 > > > Those two commands aren't equivalent.
 > >
 > > They of course aren't, but in our case have the same (desired) effect;
 mine is equivalent to what Dave did, while yours isn't.
 > Did you even '''try''' those commands before saying such non-sense?

 I apparently had trailing spaces on the lines with compiler names...

 {{{
 #!sh
 sed -n '/^[A-Z]/s/[ ]*//gp'
 }}}
 does it, although we shouldn't have spaces on these lines anyway (in which
 case the substitution of course would be superfluous).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12821#comment:28>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to