Australian shares have overcome a shaky start to finish the session higher, led by a recovery in miners after an afternoon upswing in metals prices.