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.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4d246485.9080...@plouf.fr.eu.org

Reply via email to