# HG changeset patch # User HackBot # Date 1359755443 0 # Node ID 5a587aedd9938fcec71f6b85750f160b30b48a2c # Parent fe0e03799400f20dcddfe2e25c8217d764421b10 mv newls bin diff -r fe0e03799400 -r 5a587aedd993 bin/newls --- 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 diff -r fe0e03799400 -r 5a587aedd993 newls --- a/newls Fri Feb 01 21:50:36 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -#!/bin/sh -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