view move-if-change @ 5868:da732079c58d

Correct some code with badly-placed parentheses, thank you Mats Lidell. lisp/ChangeLog addition: 2015-03-16 Aidan Kehoe <kehoea@parhasard.net> * tty-init.el (make-frame-after-init-entry-point): Some parentheses were placed badly here with the last change, thank you Mats for pointing it out; in passing, change to a version of the code that doesn't create a string for garbage, not that it matters.
author Aidan Kehoe <kehoea@parhasard.net>
date Mon, 16 Mar 2015 00:40:31 +0000
parents 376386a54a3c
children
line wrap: on
line source

#!/bin/sh
if
test -r $2
then
if
cmp $1 $2 > /dev/null
then
echo $2 is unchanged
rm -f $1
else
mv -f $1 $2
fi
else
mv -f $1 $2
fi