Then Joshua and all Israel with him moved on from Lachish to Eglon; they took up positions against it and attacked it.