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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: Jan Engelhardt <jengelh@HIDDEN>; dated Fri, 11 May 2012 01:42:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 11 May 2012 01:41:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 10 21:41:40 2012
Received: from localhost ([127.0.0.1]:47284 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1SSerT-0006RX-Pg
	for submit <at> debbugs.gnu.org; Thu, 10 May 2012 21:41:40 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50197)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <jengelh@HIDDEN>) id 1SSeS8-0005qH-LP
	for submit <at> debbugs.gnu.org; Thu, 10 May 2012 21:15:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jengelh@HIDDEN>) id 1SSeRz-00052A-II
	for submit <at> debbugs.gnu.org; Thu, 10 May 2012 21:15:21 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI
	autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:55187)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jengelh@HIDDEN>) id 1SSeRz-00051x-Ex
	for submit <at> debbugs.gnu.org; Thu, 10 May 2012 21:15:19 -0400
Received: from eggs.gnu.org ([208.118.235.92]:58406)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jengelh@HIDDEN>) id 1SSeRx-00087M-Ld
	for bug-coreutils@HIDDEN; Thu, 10 May 2012 21:15:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <jengelh@HIDDEN>) id 1SSeRv-000518-US
	for bug-coreutils@HIDDEN; Thu, 10 May 2012 21:15:17 -0400
Received: from seven.medozas.de ([188.40.89.202]:46677)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <jengelh@HIDDEN>) id 1SSeRv-00050m-OI
	for bug-coreutils@HIDDEN; Thu, 10 May 2012 21:15:15 -0400
Received: by seven.medozas.de (Postfix, from userid 25121)
	id 1FD2E21A0C32; Fri, 11 May 2012 03:15:11 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
	by seven.medozas.de (Postfix) with ESMTP id E7A7B21A0C30
	for <bug-coreutils@HIDDEN>; Fri, 11 May 2012 03:15:11 +0200 (CEST)
Date: Fri, 11 May 2012 03:15:11 +0200 (CEST)
From: Jan Engelhardt <jengelh@HIDDEN>
To: bug-coreutils@HIDDEN
Subject: RFE: support `install -D` with directory target
Message-ID: <alpine.LNX.2.01.1205110308420.24557@HIDDEN>
User-Agent: Alpine 2.01 (LNX 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 10 May 2012 21:41:38 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

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




Acknowledgement sent to Jan Engelhardt <jengelh@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#11449; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.