implement some of bash