From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3033 invoked from network); 30 Dec 2021 16:23:46 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 30 Dec 2021 16:23:46 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 6F3169CF4A; Fri, 31 Dec 2021 02:23:42 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 141109CD62; Fri, 31 Dec 2021 02:23:09 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ccc.com header.i=@ccc.com header.b="O7uOzqc2"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 989579CD62; Fri, 31 Dec 2021 02:23:07 +1000 (AEST) Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) by minnie.tuhs.org (Postfix) with ESMTPS id 92C3B9CC2E for ; Fri, 31 Dec 2021 02:23:05 +1000 (AEST) Received: by mail-qk1-f177.google.com with SMTP id 131so23092307qkk.2 for ; Thu, 30 Dec 2021 08:23:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccc.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/a1Pv7cMOmdDwQ7U9CFmB81DXq6flNXDP3SUOATrcVU=; b=O7uOzqc2WQ6WaWaodWFLVKBDj6tLP1syMCe5xD4j7OdJnP9/1rEFhFRiOHyxQlT1UJ ioapGl/Ss+sfRqzQG2gkUpx0SG9fywUPwBa6HFwj+v8anPw5TmFCUu+cA+2rtnLlU/V0 MSF3+Vu0gXxCOZFCYU9gHNdcaCFN+p517374M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/a1Pv7cMOmdDwQ7U9CFmB81DXq6flNXDP3SUOATrcVU=; b=BwzglXLX3XviL7VabN2WXJi6Xr1vZ/sJ0Bqf7uJ4ZqFGkufJyB9eSuk/+bHEqESL7N EE+tmt4jy00l5GYAeVKG2rqTnc9Kkc0iFMVU9RfxJ8QmmdlGYuuYNXiee7PrQBFeH020 m+H8iFVhysmCtKboItsuTXbbKnzrPtch1uHAaW8TtQZrH4BWdKMgZXX5ssOmxqedx/3j YVVjb0PjpJT1u0Q4cc/Sz03xcoyfWL0aNX2+h/Sdrm/ZEGaNyJX3/+jKVUyj89oV7/se fwUDeRtDoDY9s1MmD99yW6BGIkj/zAYUvgUdh6EKW+Wioa5VjJQekqzlVQndpJrzxbsX A/MA== X-Gm-Message-State: AOAM530kJPs6efkPbi7uuq79AS/Lrp5P46OCfwN0YsOOBp+rFEKH57ED ibVAVS4v5J1bqQ3JqXMLyFzh2BJH8Y/9oL4b7pmrSA== X-Google-Smtp-Source: ABdhPJyalMgY81QUMwLWLViq1O+zFK7nkk7+zKlQzY9c/TPIQXvemBvrIPbFk5QtsaQfUXh4Y73g6HnqXfSquSO5cYk= X-Received: by 2002:a05:620a:25d2:: with SMTP id y18mr22033439qko.442.1640881384397; Thu, 30 Dec 2021 08:23:04 -0800 (PST) MIME-Version: 1.0 References: <529fceae-2493-e9b1-c949-928e95e430e1@gmail.com> <202112291502.1BTF2926024814@freefriends.org> <3606ba6d-7d00-01f2-2a52-06cfb440dfbb@gmail.com> In-Reply-To: From: Clem Cole Date: Thu, 30 Dec 2021 11:22:38 -0500 Message-ID: To: Dan Stromberg Content-Type: multipart/alternative; boundary="00000000000009376005d45f7809" Subject: Re: [TUHS] moving directories in svr2 X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --00000000000009376005d45f7809 Content-Type: text/plain; charset="UTF-8" sure - but old habits die hard (and Ken's man page for tar shows the form I use. I programmed my fingers to his example in 1978 I suspect). On Thu, Dec 30, 2021 at 12:14 AM Dan Stromberg wrote: > > On Wed, Dec 29, 2021 at 8:18 AM Clem Cole wrote: > >> Where and when did mvdir(1) appear? It's not in Research or BSD. >> >> FWIW: in the old days, I just used tar cf - . | (cd some_place_else; >> tar xvpf - ) preserving permissions. The hardlink scheme of cpio was >> the one thing it could do that the original tar did not. >> > > I'm partial to: > (cd /source/dir && tar cf - .) | (cd /dest/dir && tar xfp -) > > The &&'s make it so a typo is less likely to do something odd or even > damaging. > > --00000000000009376005d45f7809 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
sure - but old habits die hard (and Ken's man page = for tar shows the=C2=A0form I use.=C2=A0 I programmed my fingers to his exa= mple in 1978 I suspect).

On Thu, Dec 30, 2021 at 12:14 AM Dan Stromber= g <drsalists@gm= ail.com> wrote:

On Wed, Dec 29, 2021 at 8:18 AM Clem Cole <clemc@ccc.com> wrote:
Where and when did mvdir(1) appear?=C2=A0 It's not in Research o= r BSD. =C2=A0=C2=A0

FWIW: in the= old days, I just used =C2=A0tar cf - . | (cd some_place_else; tar xvpf=C2=A0- ) =C2=A0preserving permissions.=C2=A0 The har= dlink scheme of cpio was the one thing it could do that the original tar di= d not.

I'm partial t= o:
(cd /source/dir && tar cf - .) | (cd /dest/dir &&a= mp; tar xfp -)

The &&'s make it so a t= ypo is less likely to do something odd or even damaging.

--00000000000009376005d45f7809--