It's not a real language, honest

Chris Mikkelson cmikk at qwest.net
Mon May 28 21:39:34 CEST 2007


On Mon, May 28, 2007 at 04:40:51PM +0100, A.L.M.Buxey at lboro.ac.uk wrote:
> Hi,
> 
> >   Sorry... doing massive commits, and occasionally forgetting things.
> 
> may be caught..but latest CVS does want to 'make install'
> fails due to the 
> 
> sed -i .bak '/s/^freeradius-devel ....blahblah line
> 
> (in src/include/Makefile )
> 
> a quick removal of the .bak part fixes this.

Without the ".bak", FreeBSD's (version 5 and higher)
sed will choke on this.

Does your sed work with:

	sed -i.bak ....

(i.e., no space between -i and its argument?  If so, that'll
work for both of us.)

Otherwise, the most portable would be to avoid sed -i and
do:

	sed $RE < file > file.new && mv file.new file

or use "perl -i.bak -pe $RE"

-- 
Chris Mikkelson  | For example, I could be a sentient PERL script.  That
cmikk at qwest.net  | pretty much assumes that someone brilliant enough to
                 | write me was also stupid enough to program in PERL.
                 | Not a likely explanation.  -- Terry Lambert



More information about the Freeradius-Devel mailing list