The latter is more portable, while the former only works on systems where /bin/bash exists (or is symlinked appropriately).