added draft for shell macro parser (credits to Claus Ilginnis)