changeset 1963:33abbf30ba67

<kmc> echo -e \'#!/bin/sh\\nif [ $(stat -c %i "$1") -eq 752131 ]; 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\' > bin/ls
author HackBot
date Fri, 01 Feb 2013 22:28:10 +0000
parents e3983f98883e
children 4217402e7522
files bin/ls
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/bin/ls	Fri Feb 01 22:04:31 2013 +0000
+++ b/bin/ls	Fri Feb 01 22:28:10 2013 +0000
@@ -1,5 +1,2 @@
 #!/bin/sh
-if [ "$1" = wisdom -o "$1" = 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
+if [ $(stat -c %i "$1") -eq 752131 ]; 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