From owner-freebsd-questions@FreeBSD.ORG Wed Nov 2 20:42:45 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13D6016A41F; Wed, 2 Nov 2005 20:42:45 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7478143D45; Wed, 2 Nov 2005 20:42:43 +0000 (GMT) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.1/8.13.1) with ESMTP id jA2KgbcL067620; Wed, 2 Nov 2005 12:42:37 -0800 (PST) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.1/8.13.1/Submit) id jA2KgaPk067619; Wed, 2 Nov 2005 12:42:36 -0800 (PST) (envelope-from kline) Date: Wed, 2 Nov 2005 12:42:35 -0800 From: Gary Kline To: Giorgos Keramidas Message-ID: <20051102204235.GC67144@thought.org> References: <20051101011146.GA14135@thought.org> <20051101013050.GA10120@flame.pc> <20051101055104.GA15533@thought.org> <20051101121414.GB1051@flame.pc> <20051101185922.GB67660@thought.org> <2011CB42-5C96-4315-AD73-A17B39589CBF@secure-computing.net> <20051101222051.GA24702@thought.org> <20051102093907.GT29387@submonkey.net> <20051102200757.GA67144@thought.org> <20051102201439.GA37256@flame.pc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051102201439.GA37256@flame.pc> User-Agent: Mutt/1.4.2.1i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 19 years of service to the Unix community X-Mailman-Approved-At: Thu, 03 Nov 2005 13:58:52 +0000 Cc: Eric F Crist , Gary Kline , Ceri Davies , freebsd-questions@freebsd.org, freebsd-www@freebsd.org Subject: Re: The best scripts ever (trick or treat) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Nov 2005 20:42:45 -0000 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 . A sh script might use the ">" or "<" for redirection, but the conversion script would ignore everything between BEGINSCRIPT ENDSCRIPT which would make parsing straightforeward. gary -- Gary Kline kline@thought.org www.thought.org Public service Unix