Date: Thu, 12 Mar 2009 11:05:55 -0700 From: Kent Stewart <kstewart@owt.com> To: freebsd-questions@freebsd.org Cc: David Banning <david+dated+1237311277.37b93e@skytracker.ca> Subject: Re: sed error "unescaped newline inside substitute pattern" Message-ID: <200903121105.56011.kstewart@owt.com> In-Reply-To: <20090312173436.GA51898@skytracker.ca> References: <20090312173436.GA51898@skytracker.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 12 March 2009 10:34:36 am David Banning wrote: > Here is the php line that gives the error; > > cat start_text | sed "s/--maintext--/$test/" > endtext > > give error; > > sed: 1: "s/--maintext--/ Comment ...": unescaped newline inside substitute > pattern > > where $test contains customer input from a website form > > There is something about the content of the text within the variable $test > that is causing the error. > > Any pointers would be helpful. Well, it might be because "test" is a command line function. Kent -- kent Stewart Richland, WA http://users.owt.com/kstewart/index.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903121105.56011.kstewart>