|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Use test ([) instead of expr to compare integers.
# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 9b842cdbe0de02c1cc1dccfda8cb772168a499f7
# Parent bbef89ec44b86b87cd0f108bf5d15a6e2b6562e7
Use test ([) instead of expr to compare integers.
expr $int1 '<' $int2 seems to be broken on some shells.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>
diff -r bbef89ec44b8 -r 9b842cdbe0de tools/examples/xen-hotplug-common.sh
--- a/tools/examples/xen-hotplug-common.sh Sat Dec 3 20:53:01 2005
+++ b/tools/examples/xen-hotplug-common.sh Sat Dec 3 23:49:51 2005
@@ -119,7 +119,7 @@
local owner=$(_lock_owner "$lockdir")
local retries=0
- while expr $retries '<' $LOCK_RETRIES
+ while [ $retries -lt $LOCK_RETRIES ]
do
mkdir "$lockdir" && trap "release_lock $1; sigerr" ERR &&
_update_lock_info "$lockdir" && return
@@ -131,7 +131,7 @@
retries=0
fi
- if expr $retries '>' $LOCK_SPINNING_RETRIES
+ if [ $retries -gt $LOCK_SPINNING_RETRIES ]
then
sleep $LOCK_SLEEPTIME
else
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] Use test ([) instead of expr to compare integers.,
Xen patchbot -unstable <=
|
|
|
|
|