X-Authentication-Warning: kendall.sfbr.org: jeffw set sender to jeffw AT darwin DOT sfbr DOT org using -f Date: Wed, 6 Jun 2001 10:46:19 -0500 From: JT Williams To: Eli Zaretskii Cc: djgpp AT delorie DOT com Subject: Re: portable equivalent to djgpp `update' Message-ID: <20010606104619.B18924@kendall.sfbr.org> Mail-Followup-To: Eli Zaretskii , djgpp AT delorie DOT com References: <20010606084202 DOT A18502 AT kendall DOT sfbr DOT org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from eliz@is.elta.co.il on Wed, Jun 06, 2001 at 04:53:17PM +0300 Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk -: > What is a portable (if inefficient or inelegant) replacement for `update'? -: -: `update' was born to replace the GNU-standard move-if-change shell -: script I didn't know about move-if-change, thanks! But, it seems that `update' and `move-if-change' are different enough to be dangerous: update: copy src -> dest move-if-change: _move_ src -> dest _remove_ src if src==dest (ouch!)