From owner-freebsd-current@FreeBSD.ORG Sun Mar 27 07:42:59 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C2ED16A4CE for ; Sun, 27 Mar 2005 07:42:59 +0000 (GMT) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BED943D48 for ; Sun, 27 Mar 2005 07:42:58 +0000 (GMT) (envelope-from kientzle@freebsd.org) Received: from freebsd.org (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id j2R7guOZ029171; Sat, 26 Mar 2005 23:42:56 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <424663FD.8030902@freebsd.org> Date: Sat, 26 Mar 2005 23:42:53 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20031006 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christopher Nehren References: <20050313223214.D6EE57306E@freebsd-current.sentex.ca> <4243B57D.5050204@freebsd.org> <20050325130458.GA40427@polands.org> <20050326181516.X65159@qbhto.arg> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: Idea for tar feature X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2005 07:42:59 -0000 Christopher Nehren wrote: > > Not from gtar, but rather OpenBSD's tar: the -s option, which allows you > to perform s/// replacements on archive paths. This is a good idea. There's already a hook in the source for doing pathname edits, so the only trick is implementing the actual substitution code. I think that the Henry Spencer regex(3) routines in the FreeBSD libc should fill the bill nicely. I'll add it to my TODO list. ;-) Tim