Mercurial > repo
diff bin/newls @ 1953:5a587aedd993
<oerjan> mv newls bin
author | HackBot |
---|---|
date | Fri, 01 Feb 2013 21:50:43 +0000 |
parents | 42bcc3efd5c5 |
children | 85db0d725f1e |
line wrap: on
line diff
--- a/bin/newls Fri Feb 01 21:50:36 2013 +0000 +++ b/bin/newls Fri Feb 01 21:50:43 2013 +0000 @@ -1,5 +1,5 @@ #!/bin/sh -if [[ "$@" =~ "wisdom(/)\?" ]]; -then; echo "As the wisdom directory contains many files named after nicks, listing it in public annoys people. Try `pastewisdom instead."; -else; exec /bin/ls "$@"; +if [[ "$@" == wisdom || "$@" == wisdom/ ]]; +then echo 'As the wisdom directory contains many files named after nicks, listing it in public annoys people. Try `pastewisdom instead.'; +else exec /bin/ls "$@"; fi