[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: install(1) man page
From: |
Bob Proulx |
Subject: |
Re: install(1) man page |
Date: |
Thu, 24 Mar 2005 08:13:49 -0700 |
User-agent: |
Mutt/1.5.6+20040907i |
----- Forwarded message from Rene Kapeller <address@hidden> -----
Hi Bob
thanks for the fast reply!
I did the following on Redhat-7.3 and Scientific Linux 304 (which
reflects Redhat EL3 U4)
######################################
# on Redhat-7.3 #
######################################
$ rpm -q -f /usr/bin/install
fileutils-4.1-10.1
-------------------------------------------------------------------
$ install --version
install (fileutils) 4.1
Written by David MacKenzie.
Copyright (C) 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-------------------------------------------------------------------
The man page says:
-C Install file, unless target already exists and is
the same as the new file, in which case the modifi-
cation time won't be changed.
-------------------------------------------------------------------
'install --help' does not mention the option '-C'
-------------------------------------------------------------------
The following example reports the copy task, since the destination file
does not exist....
$ install -Cv file /tmp/
`file' -> `/tmp/file'
... the second time, it does not (which is good).
$ install -Cv file /tmp/
Using just '-C' without '-v' does the job too, but never reports the
action (good)
$ install -C file /tmp/
######################################
# on Redhat EL 3 U4 #
######################################
$ rpm -qf /usr/bin/install
coreutils-4.5.3-26
-------------------------------------------------------------------
$ install --version
install (coreutils) 4.5.3
Written by David MacKenzie.
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-------------------------------------------------------------------
The man page does not mention the option '-C'
-------------------------------------------------------------------
'install --help' does not mention the option '-C'
-------------------------------------------------------------------
Even though option '-C' is never mentioned in 4.5.3, it still works as
in version 4.1 (hmmmm?)
$ install -vC file /tmp/
`file' -> `/tmp/file'
... and it's silent the second time
$ install -vC file /tmp/
.. and this also works silently
$ install -C file /tmp/
Rene
Bob Proulx wrote:
>Rene Kapeller wrote:
>
>>Option '-C' is missing in the man page of install(1), neither does
>>'install --help' list this option.
>
>
>Uhm... Neither does it appear in the source code. So all of that is
>consistent.
>
> install -C
> install: invalid option -- C
> Try `install --help' for more information.
>
> install --version
> install (coreutils) 5.2.1
> Written by David MacKenzie.
>
> Copyright (C) 2004 Free Software Foundation, Inc.
>
>What version are you using?
>
>Bob
--
==== Rene Kapeller, WSLA/205, Paul Scherrer Institut, CH-5232 Villigen
==== phone: +41-56-3102397 mobile: +41-79-3059088 fax: +41-56-3104413
==== mailto:address@hidden http://people.web.psi.ch/kapeller/
----- End forwarded message -----