Proper bash handling