delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/18/05:00:14

Message-Id: <200505180900.j4I8xxec025704@delorie.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net>
To: <cygwin AT cygwin DOT com>
Subject: Mv after tar in a shell script problems
Date: Wed, 18 May 2005 04:02:57 -0500
MIME-Version: 1.0
X-IsSubscribed: yes

Am I losing my mind, or shouldn't this "just work"(tm) in a shell script?:

 #!/bin/sh
 # ^^ behaves the same if it's /bin/bash

 tar xvjf file.tar.bz2
 mv dir_name_file.tar.bz2_untars_to new_dir_name

???

About half the time I get "Permission denied" from mv, the other half it
works fine.  If I do it by hand, even after a "Permission denied", it works
fine.  This is with both the current DLL snapshot and 1.5.16-1, current
coreutils.  I must be missing something pretty basic here, because
configures etc are working fine.

-- 
Gary R. Van Sickle


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019