Re: install(1) man page

2005-04-05 Thread Rene Kapeller
Too bad my C programming is a bit thin.
Paul Eggert wrote:
Rene Kapeller [EMAIL PROTECTED] writes:

Too bad, it's realy useful. No way to make that a standard option of
install(1)?

If someone contributes a clean patch to implement it, I'd volunteer to
review it.  The final decision would be Jim's, though.


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: install(1) man page

2005-04-04 Thread Paul Eggert
Rene Kapeller [EMAIL PROTECTED] writes:

 Too bad, it's realy useful. No way to make that a standard option of
 install(1)?

If someone contributes a clean patch to implement it, I'd volunteer to
review it.  The final decision would be Jim's, though.


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: install(1) man page

2005-03-24 Thread Bob Proulx
Rene Kapeller wrote:
 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'
 ---

Interesting.  I did not previously know about this option.  But I
looked and -C is an option to the BSD install program.  Here is the
FreeBSD man page.

-C  Copy the file.  If the target file already exists and the files
are the same, then don't change the modification time of the
target.  If the target's file flags and mode need not to be
changed, the target's inode change time is also unchanged.

The GNU install program does not implement that option.  So it appears
that Red Hat added that option to their distribution for BSD
compatibility.  It appears that they patched the man page to contain
that information but did not patch the program to produce it in the
help output.  I am sure that was a simple oversight.

 ##
 #   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'
 ---

I would guess that the patch for the option in the code still exists
but that the patch for the man page was lost in that version.  I am
sure that was not intentional since the older one had patched the man
page too.  Normally the man page is automatically generated from the
program's --help output so that they are always the same.  Something
probably simply got lost in the later packages.

Could you make a bug report to Red Hat about this?  Neither Debian nor
SuSE have patched for that option.  I did not check any others.

Note that use of install -C appears to be a non-portable option
originating in BSD.  It does not appear in SysV-like systems such as
the HP-UX one that I checked.  It appears to be a BSD-ism.  I
recommend avoiding it so that scripts using install would be portable
across systems.  The command itself is not covered by any standards
that I could find.  So we are left only with common usage as a guide.

Thanks
Bob


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: install(1) man page

2005-03-24 Thread Tim Waugh
On Thu, Mar 24, 2005 at 08:21:15AM -0700, Bob Proulx wrote:

 Could you make a bug report to Red Hat about this?  Neither Debian nor
 SuSE have patched for that option.  I did not check any others.

Never mind, I've removed this patch from the development RPM package
now.  It was added in 1999:

* Thu Nov 18 1999 Bernhard Rosenkraenzer [EMAIL PROTECTED]
- Add the -C option to install for compatibility with *BSD

Tim.
*/


pgpPTcQMnaP3f.pgp
Description: PGP signature
___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils


Re: install(1) man page

2005-03-23 Thread Bob Proulx
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


___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils