delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/28/09:30:48

X-Authentication-Warning: kendall.sfbr.org: jeffw set sender to jeffw AT darwin DOT sfbr DOT org using -f
Date: Fri, 28 Jun 2002 08:30:23 -0500
From: JT Williams <jeffw AT darwin DOT sfbr DOT org>
To: djgpp AT delorie DOT com
Subject: cp -if
Message-ID: <20020628133023.GB19395@kendall.sfbr.org>
Mail-Followup-To: djgpp AT delorie DOT com
Mime-Version: 1.0
User-Agent: Mutt/1.3.27i
Reply-To: djgpp AT delorie DOT com

Using cp from latest port of fileutils 4.1, a `-f' option does *not*
override a previous `-i'.  This may happen with other fileutil programs,
too; I just happened to notice it with cp.

=== Solaris ===

% touch foo bar

% cp -vi foo bar
cp: overwrite `bar'? n

% cp -vif foo bar
foo -> bar

% cp --version
cp (GNU fileutils) 4.0

=== DOS 5 + stock djgpp 2.03 + bash 2.04 ===

% touch foo bar

% cp -vi foo bar
cp: overwrite `bar'? n

% cp -vif foo bar
cp: overwrite `bar'? n

% cp --version
cp (fileutils) 4.1
Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering.

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019