extract(): echo the executed commands