bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

must use cp && rm as mv has no --no-preserve


From: jidanni
Subject: must use cp && rm as mv has no --no-preserve
Date: Thu, 19 Mar 2009 02:36:04 +0800

Gentlemen, I have discovered I must use cp && rm as mv has no --no-preserve.

# touch k; mv k /cf
mv: failed to preserve ownership for `/cf/k': Operation not permitted
# touch k; cp -a --no-preserve=owner k /cf && rm k

You see, moving to VFAT, one will get that message under different
mount owners.

And the only way to avoid it is my workaround.

So do mention on the mv Info page this workaround for if you don't
like 2>&-, and don't like warnings, but like -a.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]