[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Shell Globbing && svn cp WC/* WC/

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-01-27 23:08:13 CET

Hi!

I tried to use `svn cp` to copy a directory of files working-copy to
working-copy:
     svn cp ../../contrib/* ./
This command returns the usage info for `svn cp`.

I know I _could_ have copied over the entire directory:
     svn cp ../../contrib/ ./

but what if you only wanted a certain type of file?
     svn cp ../../contrib/*.tex ./

Is it because the shell glob makes multiple source copies to one
destination directory instead of a 1:1 copy?

I expected the cp command to act like the Unix cp command in this case.

I saw this old defect for windows globbing but nothing for Unix:
http://subversion.tigris.org/issues/show_bug.cgi?id=787

[nesscg@heidrun intro]$ svn --version
svn, version 1.1.2 (r12471)
   compiled Jan 10 2005, 07:01:51

Thoughts?
Chris

-- 
Software Engineering IV,
McMaster University
PGP Public Key: http://www.nesser.org/pgp-key/
16:53:28 up 2 days, 8:46, 5 users, load average: 0.52, 0.40, 0.29 
http://www.fsf.org/philosophy/no-word-attachments.html

Received on Thu Jan 27 23:10:31 2005

This is an archived mail posted to the Subversion Users mailing list.