When using 'install foo bar', bar should be treated as a file copy of foo, not a directory to be created and into which install foo.
Given the following commands: touch 1.txt; install -D 1.txt d/2.txt find d The result without this fix: d d/2.txt d/2.txt/1.txt The result with this patch applied: d d/2.txt