bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: install -D into directory


From: Andreas Schwab
Subject: Re: install -D into directory
Date: Tue, 16 Sep 2003 22:05:42 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux)

Koblinger Egmont <address@hidden> writes:

> Hi,
>
> [ I sent this mail two months ago but there was no feedback and it's still
> buggy in 5.0.91. ]
>
>
> The command ``install -D file /tmp/into/this/directory/'' says:
> install: cannot create regular file `/tmp/into/this/directory/': Is a 
> directory
>
> IMHO this is incorrect, I'd expect it to create this directory and install
> the file into it with its original name (just as if I manually created
> this directory and didn't give -D option to ``install'', or repeated the
> filename in the last argument).

Usage: install [OPTION]... SOURCE DEST           (1st format)
  or:  install [OPTION]... SOURCE... DIRECTORY   (2nd format)
  or:  install -d [OPTION]... DIRECTORY...       (3rd format)
[...]
  -D                  create all leading components of DEST except the last,
                        then copy SOURCE to DEST;  useful in the 1st format

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]