Re: [CentOS] perl one-liner issue

2011-03-17 Thread John Doe
From: Joseph L. Casale > To: "centos@centos.org" > Sent: Wed, March 16, 2011 8:56:41 PM > Subject: [CentOS] perl one-liner issue > > I am trying to deduce the one liner for an rpm I am packaging to edit a php > configuration file from within my spec. The line I am editing looks like: > $conf[

Re: [CentOS] perl one-liner issue

2011-03-16 Thread Joseph L. Casale
>Go easy on yourself, and : >a) don't try to match the quotation marks verbatim. Instead, match them with >simply a . Clever, thanks! jlc ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] perl one-liner issue

2011-03-16 Thread Jonathan Detert
On Wed, Mar 16, 2011 at 07:56:41PM +, Joseph L. Casale wrote: > I am trying to deduce the one liner for an rpm I am packaging to edit a php > configuration file from within my spec. The line I am editing looks like: > > $conf['nagios_base'] = "/nagios/cgi-bin"; > > What are the escape require

Re: [CentOS] perl one-liner issue

2011-03-16 Thread Jason Pyeron
> -Original Message- > From: Benjamin Franz > Sent: Wednesday, March 16, 2011 17:30 > To: CentOS mailing list > Subject: Re: [CentOS] perl one-liner issue > > On 03/16/2011 01:42 PM, Joseph L. Casale wrote: > >>> $conf['nagios_base'] = > >

Re: [CentOS] perl one-liner issue

2011-03-16 Thread Joseph L. Casale
>The problem is trying to pass valid Perl though the bash shell . There >is an insane amount of interaction between all the escapings involved in >this specific pattern. The hard problem is getting bash to *not* change >what you are passing to Perl before Perl sees it. As I have noticed:) >Aft

Re: [CentOS] perl one-liner issue

2011-03-16 Thread Benjamin Franz
On 03/16/2011 01:42 PM, Joseph L. Casale wrote: >>> $conf['nagios_base'] = >> I'd just search for that part, above. > Me to, and I never even got to the replacement as the search for that > was bailing:) The problem is trying to pass valid Perl though the bash shell . There is an insane amount of

Re: [CentOS] perl one-liner issue

2011-03-16 Thread Joseph L. Casale
>> $conf['nagios_base'] = > >I'd just search for that part, above. Me to, and I never even got to the replacement as the search for that was bailing:) ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] perl one-liner issue

2011-03-16 Thread John R Pierce
On 03/16/11 12:56 PM, Joseph L. Casale wrote: > $conf['nagios_base'] = I'd just search for that part, above. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos