"-b --suffix '' --delete --backup-dir /path/" combination does
not act as expected
jw schultz
jw at pegasys.ws
Sat Aug 2 06:05:38 EST 2003
On Fri, Aug 01, 2003 at 09:57:15AM -0700, Wayne Davison wrote:
> On Fri, Aug 01, 2003 at 01:51:53AM -0700, jw schultz wrote:
> > If for some reason they specify
> > --suffix=~ --backup-dir=../foo
> > it should create the backup files with the requested suffix.
>
> Yes, I totally agree. Fortunately, that's what the code does.
>
> > We want to send the suffix if they specified one even if they
> > specified the default.
>
> No, there's no need to do that. What you're missing is that the default
> is "" when they specified --backup-dir, so the code only sends the
> suffix if it is not a null string in that case. If they specified
> --suffix=~, it gets sent when --backup-dir was specified. (We don't
> send '~' only when --backup-dir was _not_ specified.)
Doh! Sorry, i'll go bang my head agaist the wall now.
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync
mailing list