move oldfolder newfolder results in oldfolder/newfolder

Bradley Giesbrecht pixilla at macports.org
Wed Feb 15 17:16:53 PST 2012


It seems that if you use the move macro or file rename on a folder a new folder is created for the target folder and the source is moved _into_ the target.

With tclsh _file rename_ works as expected:
% ls
% mkdir source
% file rename source target
% ls -R
target

./target:
% 

While in my Portfile _file rename_ would result in:
% ls -R 
target

./target:
source

./target/source:
% 



Regards,
Bradley Giesbrecht (pixilla)







More information about the macports-dev mailing list