[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mv behaviour different than SuSv3
From: |
Glenn McGrath |
Subject: |
mv behaviour different than SuSv3 |
Date: |
Sat, 24 Apr 2004 16:18:35 +1000 |
>From the Sucv3 description of mv, at
http://www.opengroup.org/onlinepubs/007904975/utilities/mv.html
"3. If the destination path exists, and it is a file of type directory
and source_file is not a file of type directory, or it is a file not of
type directory and source_file is a file of type directory, mv shall
write a diagnostic message to standard error, do nothing more with the
current source_file, and go on to any remaining source_files."
With mv from GNU coreutils-5.2.0 the following will succeed.
# touch foo
# mkdir bar
# mv foo bar
However the destination path is of type directory, and source_file is
not a directory, so for GNU mv to be SuSv3 compliant it should complain.
I didnt see anything documenting this difference in behaviour, im not
sure if its intentional or not.
Glenn
- mv behaviour different than SuSv3,
Glenn McGrath <=