This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Mv after tar in a shell script problems


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]