GNU bug report logs - #11449
RFE: support `install -D` with directory target

Previous Next

Package: coreutils;

Reported by: Jan Engelhardt <jengelh <at> inai.de>

Date: Fri, 11 May 2012 01:42:02 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Jan Engelhardt <jengelh <at> inai.de>
To: 11449 <at> debbugs.gnu.org
Subject: bug#11449: RFE: support `install -D` with directory target
Date: Fri, 11 May 2012 03:15:11 +0200 (CEST)
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.