On Tue, Apr 26, 2016 at 11:53 AM, Paul Mullen <p...@nellump.net> wrote:
> On Tue, Apr 26, 2016 at 10:45:08AM -0700, John Jason Jordan wrote: > > According to man cp -auf is what I should be using for what I want > > the command to so, but apparently there is something that I am not > > understanding. > > I don't understand it either. I saw the same behavior in a quick > experiment. Hopefully someone else on the list can enlighten us. > > This is a job for rsync, anyhow. > Agreed: use rsync. Running the following function may shed some light on how cp -auf works: example.cp () { ( set -x tmp=$(mktemp -d || exit ) cd $tmp mkdir -p a/b/ touch a/b/hw.txt tree cp -aufv a z tree cp -aufv a z tree cp -aufv a z cd rm -rf "${tmp}" ) } example.cp Regards, - Robert _______________________________________________ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug