Bug 6593

Summary: mv erroneously does recursive moves
Product: [Retired] Red Hat Linux Reporter: tony
Component: fileutilsAssignee: Cristian Gafton <gafton>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-17 20:21:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description tony 1999-11-01 08:14:24 UTC
ls -l
[several files and directories listed]
mkdir dir
mv * dir
[long pause, disk thrashing, not good]
^C
ls -F
dir/
ls -l dir/
[moved files + dir/]
ls -l dir/dir/
[moved files + another dir/ !!!]

Bad news.  mv should complain about an "invalid arguement"
when trying to mv dir/ into dir/ and should not do it
recursively.

Comment 1 Bernhard Rosenkraenzer 2000-02-17 20:21:59 UTC
Works for me with 4.0-19