git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change "expr" to "expr --" in all shell scripts. Fixes: #889
[exim.git]
/
src
/
src
/
exicyclog.src
diff --git
a/src/src/exicyclog.src
b/src/src/exicyclog.src
index c1af5d1793dc014af2bd0064c19ef155d03f9700..097de7eaa0fc1e0a466259607019441ee41129a9 100644
(file)
--- a/
src/src/exicyclog.src
+++ b/
src/src/exicyclog.src
@@
-1,5
+1,5
@@
#! /bin/sh
#! /bin/sh
-# $Cambridge: exim/src/src/exicyclog.src,v 1.
9 2009/01/20 16:06:14 fanf2
Exp $
+# $Cambridge: exim/src/src/exicyclog.src,v 1.
10 2009/10/30 15:14:04 nm4
Exp $
# Copyright (c) 2006 University of Cambridge.
# See the file NOTICE for conditions of use and distribution.
# Copyright (c) 2006 University of Cambridge.
# See the file NOTICE for conditions of use and distribution.
@@
-251,7
+251,7
@@
count=$keep
if [ $count -lt 10 ]; then countt=0$count; else countt=$count; fi
while [ $count -gt 1 ]; do
if [ $count -lt 10 ]; then countt=0$count; else countt=$count; fi
while [ $count -gt 1 ]; do
- old=`expr $count - 1`
+ old=`expr
--
$count - 1`
if [ $keep -gt 99 ]; then
if [ $old -lt 10 ]; then oldt=00$old
elif [ $old -lt 100 ]; then oldt=0$old
if [ $keep -gt 99 ]; then
if [ $old -lt 10 ]; then oldt=00$old
elif [ $old -lt 100 ]; then oldt=0$old
@@
-334,7
+334,7
@@
while [ $count -le $keep ]; do
$chown $user:$group $paniclog.$countt.$suffix
fi
$chown $user:$group $paniclog.$countt.$suffix
fi
- count=`expr $count + 1`
+ count=`expr
--
$count + 1`
done
# End of exicyclog
done
# End of exicyclog