Mercurial > repo
changeset 1950:42bcc3efd5c5
<oerjan> mv newls bin
author | HackBot |
---|---|
date | Fri, 01 Feb 2013 21:44:08 +0000 |
parents | d0c2f785ab13 |
children | 30fa75f7e197 |
files | bin/newls newls |
diffstat | 2 files changed, 3 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/newls Fri Feb 01 21:43:57 2013 +0000 +++ b/bin/newls Fri Feb 01 21:44:08 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(/)\?" ]]; +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
--- a/newls Fri Feb 01 21:43:57 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -#!/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 "$@"; -fi