func_cd will not ls if failed