[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [coldsync-hackers] ColdSync::DumpConfig
- To: coldsync-hackers at lusars dot net
 
- Subject: Re: [coldsync-hackers] ColdSync::DumpConfig
 
- From: Pierre Phaneuf <pp at ludusdesign dot com>
 
- Date: Wed, 16 Oct 2002 18:25:00 -0400
 
- References: <Pine.BSI.4.44.0210161810530.22698-100000@mail.his.com>
 
- Reply-To: coldsync-hackers at lusars dot net
 
- Sender: owner-coldsync-hackers at lusars dot net
 
- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020913 Debian/1.1-1
 
Andrew Arensburger wrote:
>>+       $path =~ s|^()[^/].*/|$ENV{'PWD'}/|;
> 
> 	What's the "()" for?
It's there to provide a mistake to correct. :-)
My first patch was correct, but that updated one wasn't (the output 
"looked" good, but was missing part of the path). This is good and tested:
$path =~ s|^([^/].*/)|$ENV{'PWD'}/$1|;
-- 
Pierre Phaneuf
http://advogato.org/person/pphaneuf/
-- 
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.