add compatible for bash