Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2011 21:56:41 -0700
From:      Gary Kline <kline@thought.org>
To:        Polytropon <freebsd@edvax.de>
Cc:        Brad Mettee <bmettee@pchotshots.com>, FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: why does this simple counter fail?
Message-ID:  <20110326045641.GA31925@thought.org>
In-Reply-To: <20110326023009.251596d4.freebsd@edvax.de>
References:  <kggr59xpv0c.fsf@pc-df-302.priv.enst-bretagne.fr> <20110324230049.GB31958@thought.org> <89898D0E-B4A9-41E9-B829-DF7CA8D3FF06@d3photography.com> <20110325053630.GA6722@thought.org> <BE6D7321-0B4A-4762-9270-CC34E52ECBED@d3photography.com> <20110325164445.GA16901@thought.org> <kggy643nnuw.fsf@pc-df-302.priv.enst-bretagne.fr> <20110325235341.GA26039@thought.org> <4D8D3D68.2010507@pchotshots.com> <20110326023009.251596d4.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 26, 2011 at 02:30:09AM +0100, Polytropon wrote:
> On Fri, 25 Mar 2011 21:12:08 -0400, Brad Mettee <bmettee@pchotshots.com> wrote:
> > Gary Kline wrote:
> > > 	I'M trying to decide whether to tatoo this on my forehead or
> > > 	just make a note in my ~/.notes file for the next time this
> > > 	breaks.  if/when.  Meanwhile, the best thingt to do would simply
> > > 	write a script to turn <? into <?php ....   Never know when I'll
> > > 	get into things like <?xml or whatever.
> > >   
> > If you do the <? into <?php, don't forget to do <?phpphp into <?php too. 
> > Otherwise you'll likely corrupt already good tags.
> 

	well, i have a C skeleton that i could modify, but yours below
	looks vastly simpler.  how would i use sed to run this against?


> With 's/<\?$/<\?php/g' and sufficient quoting,
> maybe removing extra spaces, it should be fine. :-)
> 

	ha! doubt if i hv any spaces after <?php.  too lazy;)

	-g

> 
> 
> -- 
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...

-- 
 Gary Kline  kline@thought.org  http://www.thought.org  Public Service Unix
           Journey Toward the Dawn, E-Book: http://www.thought.org
          The 7.98a release of Jottings: http://jottings.thought.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110326045641.GA31925>