From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17144 invoked by alias); 21 Aug 2010 15:28:09 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15310 Received: (qmail 894 invoked from network); 21 Aug 2010 15:28:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.12 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: zzapper Subject: copying a directory to same level Date: Sat, 21 Aug 2010 15:12:37 +0000 (UTC) Organization: SuccessTheory Message-ID: X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dsl78-143-228-30.in-addr.fast.co.uk User-Agent: Xnews/2006.08.24 X-Antivirus: avast! (VPS 100821-0, 21/08/2010), Outbound message X-Antivirus-Status: Clean Hi (Hope this is not too dumb) I want to duplicate directory vim73 to vim >cp -r vim73 vim/ if directory vim does not exist then it does what I want. However if vim/ already exists then vim73/ will be created as a sub-directory in vim/ eg vim/vim73 Can you explain this behaviour and how can I force it duplicate to same level regardless of whether directory exists -- zzapper http://zzapper.co.uk/ Technical Tips