From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14103 invoked from network); 29 May 1999 10:07:09 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 May 1999 10:07:09 -0000 Received: (qmail 16759 invoked by alias); 29 May 1999 10:06:59 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6368 Received: (qmail 16747 invoked from network); 29 May 1999 10:06:57 -0000 From: "Bart Schaefer" Message-Id: <990529100652.ZM7530@candle.brasslantern.com> Date: Sat, 29 May 1999 10:06:52 +0000 In-Reply-To: <006d01bea84a$8406d880$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "pws-19 + all patches: ``cp -f'' not always supportes" (May 27, 6:09pm) References: <006d01bea84a$8406d880$21c9ca95@mow.siemens.ru> <199905280014.UAA21745@ocalhost> In-Reply-To: <199905280014.UAA21745@ocalhost> Comments: In reply to Timothy J Luoma "Re: pws-19 + all patches: ``cp -f'' not always supportes" (May 27, 8:14pm) X-Mailer: Z-Mail (5.0.0 30July97) To: "ZSH workers mailing list" Subject: PATCH: Re: pws-19 + all patches: ``cp -f'' not always supportes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 27, 6:09pm, Andrej Borsenkow wrote: } Subject: pws-19 + all patches: ``cp -f'' not always supportes } } Our cp does not support -f. } } Is it possible to do without it? On May 27, 8:14pm, Timothy J Luoma wrote: } Subject: Re: pws-19 + all patches: ``cp -f'' not always supportes } } why not just use 'rm -f' before the 'cp' Indeed, why not. } I'm not actually clear on when the '-f' flag would be needed.... The file is a symlink? Somebody else owns it, but the build directory is writable by you? I'm not sure why it needs to be "cp" though. Why not "mv -f" instead? However, this patch just does the "rm -f" thing. Index: configure.in =================================================================== --- configure.in 1999/05/29 10:02:04 1.20 +++ configure.in 1999/05/29 10:02:17 @@ -1298,7 +1298,8 @@ dnl The standard config.status is missing some essential features. dnl So add them now. -[cp -f $CONFIG_STATUS $CONFIG_STATUS.old +[rm -f $CONFIG_STATUS.old + cp $CONFIG_STATUS $CONFIG_STATUS.old sed '1,$s@^\( *ac_file_inputs=\).*$@\1`echo $ac_file_in | sed -e "s%^%:%" -e "s%:\\([^!]\\)% $ac_given_srcdir/\\1%g" -e "s%:!% %"`@' \ $CONFIG_STATUS.old >$CONFIG_STATUS rm -f $CONFIG_STATUS.old] -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com