GNU bug report logs -
#11449
RFE: support `install -D` with directory target
Previous Next
Full log
View this message in rfc822 format
Hi.
Using cp, one can for example execute
cp foo/bar.txt /tmp/foo/
to have /tmp/foo/bar.txt in place after a successful copy operation,
provided the directory /tmp/foo exists. If it does not, one has to mkdir
it beforehand naturally. I thought that using `install -D` would remedy
this, however found that, in coreutils up to including 8.16,
install -D foo/bar.txt /tmp/foo/
is not implemented - the program returns the error
install: target `/tmp/foo/' is not a directory: No such file or
directory
On the other hand, the following command succeeds:
install -D foo/bar.txt /fmp/foo/bar.txt
Specifying the file's basename again on the target side argument
(/tmp/foo/bar.txt) seems redundant, given install is "just a spruced-up
cp".
Would you consider enhancing install to support "/tmp/foo/"?
thanks,
Jan
This bug report was last modified 6 years and 248 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.