Add recsed bash function