[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mv bug
From: |
Michael Schroeder |
Subject: |
Re: mv bug |
Date: |
5 Jun 2001 18:29:57 +0200 |
address@hidden (Bruno Haible) writes:
>GNU mv, when asked to move a file onto one of its hardlinked aliases,
>does nothing.
This is (unfortunatelly) the way it is defined in the standard,
e.g. in the single unix specification:
http://www.opengroup.org/onlinepubs/007908799/xsh/rename.html
If the old argument and the new argument both refer to, and both
link to the same existing file, rename() returns successfully and
performs no other action.
Other versions of 'mv' print an error message instead of doing
nothing. Anyway, you have to make do with the broken specification.
Cheers,
Michael.
--
Michael Schroeder address@hidden
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
- mv bug, Bruno Haible, 2001/06/05