Pinches, plasma focus and capillary discharge