Alan M Wright wrote:
> Nicolas Williams wrote:
>> On Wed, Mar 05, 2008 at 03:09:22PM -0800, Alan M Wright wrote:
>>> Nicolas Williams wrote:
>>>> Should a CR be filed against mv(1) here?  Or an RFE for an option to it
>>>> that obviates the identical file check, at least on case-insensitive
>>>> file systems?
>>> Fromm an mv perspective this is indistinguishable from
>>> having multiple links to a file.
>> nit: not if the link count is 1 :)
> 
> So ... it would be unfortunate if the thing you wanted
> to rename was a directory.

and, yes, you could make an assumption about directories but
I'm thinking that the man page description is getting hairy
at this point:

NAME
         mv - move files
SYNOPSIS
        mv [-fiz] source target_file
...
The source and target_file may not have the same name unless
the file system is case-insensitive or allows mixed case
operations, is case-preserving, the link count of the file
is 1, except when it is a directory, and the command result
is not required to indicate that the source and target_file
represent the same file.
...

        -f   mv will move the file(s) without prompting ...

        -i   mv will prompt for confirmation whenever the move would
             overwrite ...

        -z   trust me (it's easier than explaining what will happen)

Alan

_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to