[Bug 13901] New: Empty quotes adds cwd to SRC directories

Perry Hutchison pluto at agora.rdrop.com
Thu Apr 18 02:07:11 UTC 2019


Joe via rsync <rsync at lists.samba.org> wrote:

> I brought this up on the list years ago and was told it's a feature,
> not a bug.

That is a really lame excuse.
http://qph.fs.quoracdn.net/main-qimg-6349815aff502d70e502e228f07d8cd4

> Even if some other GNU or Linux commands have this "feature", it still
> violates the principle of least surprise.

It is certainly not expected behavior for "normal" Unix commands.
A couple of examples, on FreeBSD:

$ ls ""
ls: fts_open: No such file or directory

$ cat ""
cat: : No such file or directory



More information about the rsync mailing list