# HG changeset patch # User HackBot # Date 1359758001 0 # Node ID 54572164f4d41ef6db8cc9aa7945b56c2b70f84d # Parent 6ca36d2678d353c0b339d0960efdca922d7bf47d echo -e \'#!/bin/sh\\nif ls -id "$@" | grep -q \'^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 diff -r 6ca36d2678d3 -r 54572164f4d4 bin/ls --- a/bin/ls Fri Feb 01 22:32:01 2013 +0000 +++ b/bin/ls Fri Feb 01 22:33:21 2013 +0000 @@ -1,2 +1,2 @@ #!/bin/sh -if [ "$(stat -c %i "$1" 2>/dev/null)" = 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 +if ls -id "$@" | grep -q ^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