From owner-freebsd-questions@FreeBSD.ORG Wed Apr 15 18:54:54 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEA07106566B for ; Wed, 15 Apr 2009 18:54:54 +0000 (UTC) (envelope-from walt@wump.org) Received: from que31.charter.net (que31.charter.net [209.225.8.23]) by mx1.freebsd.org (Postfix) with ESMTP id 80F938FC17 for ; Wed, 15 Apr 2009 18:54:54 +0000 (UTC) (envelope-from walt@wump.org) Received: from imp09 ([10.20.200.9]) by mta31.charter.net (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20090415184005.MZZW2647.mta31.charter.net@imp09>; Wed, 15 Apr 2009 14:40:05 -0400 Received: from [10.0.0.10] ([68.116.98.9]) by imp09 with smtp.charter.net id fug01b00Q0C8vLc05ug4Xd; Wed, 15 Apr 2009 14:40:05 -0400 Mime-Version: 1.0 Message-Id: In-Reply-To: <1239806894.86545.12.camel@pukruppa.net> References: <1239806894.86545.12.camel@pukruppa.net> Date: Wed, 15 Apr 2009 11:39:49 -0700 To: Peter Ulrich Kruppa , Tim Judd From: Walt Pawley Content-Type: text/plain; charset="us-ascii" Cc: Alexander Best , freebsd-questions@freebsd.org Subject: Re: mkisofs and directories X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2009 18:54:56 -0000 At 4:48 PM +0200 4/15/09, Peter Ulrich Kruppa wrote: >> unix naming convention normally dictates the following: >> cp -r /cdrom/dir /mnt/ >> # will create /mnt/dir and everything under it >> cp -r /cdrom/dir/ /mnt/ >> # will copy contents of dir into /mnt >That was what I thought it should do - but it doesn't! I'm pretty certain "cp" doesn't care about the trailing slash and hasn't. OTOH, you could use "rsync" which does change its behavior depending on the trailing slash. -- Walter M. Pawley Wump Research & Company 676 River Bend Road, Roseburg, OR 97471 541-672-8975