Make install-sh work even when names contain spaces or
authorJim Meyering <jim@meyering.net>
Sun, 10 Nov 2002 14:24:01 +0000 (14:24 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 10 Nov 2002 14:24:01 +0000 (14:24 +0000)
commit2afb4254d1dedbbc048dfbe6b037b52b84dab92b
tree9b33076b92bd875a43a1704e532269d4571a3849
parent25487e61aee88237ed6fb29809ff37cabde9dd00
Make install-sh work even when names contain spaces or
certain (but not all) shell metachars.

* lib/install-sh: Remove lots of unnecessary quoting.
Add double quotes where necessary.
Write diagnostics to stderr, not stdout.
Normalize spacing in diagnostics: use one space (not two,
and not a TAB) after the leading `install:'.
Remove trailing white space.
Remove unnecessary curly braces.
If removing the destination fails, also try to move it aside.
Use `trap' more portably.
* tests/installsh2.test: New file, to test for the above fix.
* tests/Makefile.am (TESTS): Add installsh2.test.
ChangeLog
tests/installsh2.test [new file with mode: 0755]