The best scripts ever (trick or treat)

Giorgos Keramidas keramida at ceid.upatras.gr
Wed Nov 2 12:47:52 PST 2005


On 2005-11-02 12:42, Gary Kline <kline at tao.thought.org> wrote:
> On Wed, Nov 02, 2005 at 10:14:40PM +0200, Giorgos Keramidas wrote:
> > >
> > > 	"CATEORY: foo
> > > 	"FUNCTION: it_does_this
> > > 	"OPTIONS: can_do_this_or_that"
> > >
> > > 	BEGINSCRIPT
> > > 	!#/bin/sh
> > > 	echo "hello world"
> > > 	ENDSCRIPT
> >
> > What happens when the script itself contains a line that starts
> > with one of the special "markup" lines?
> >
>
> 	AFAIK, the only markup lines this would use would be
> 	the <TAGS></TAGS>.  A sh script might use the ">" or "<"
> 	for redirection, but the conversion script would ignore
> 	everything between
>
> 	BEGINSCRIPT
> 	ENDSCRIPT
>
> 	which would make parsing straightforeward.

Unless the shell script itself contains 'ENDSCRIPT' somewhere ;-)

This is what I was referring to as "markup".



More information about the freebsd-questions mailing list