Mercurial > repo
changeset 2566:7152b2168b1b
<oerjan> sed -i \'2s/| grep/2>\\/dev\\/null | grep/\' bin/ls
author | HackBot |
---|---|
date | Sun, 31 Mar 2013 19:56:28 +0000 |
parents | 2d5195b1e15f |
children | 4f8e28a0539a |
files | bin/ls |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/ls Sun Mar 31 19:54:59 2013 +0000 +++ b/bin/ls Sun Mar 31 19:56:28 2013 +0000 @@ -1,2 +1,2 @@ #!/bin/sh -if /bin/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 +if /bin/ls -id "$@" 2>/dev/null | 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