S Mathias a écrit : > > if ! [ "${PWD##*/}" == "asdf" ]; then echo "error: not the asdf dir"; exit 1; fi Note that "==" is a bashism. "=" is more portable across other shells such as dash.