Mercurial > repo
view bin/ls @ 2383:1f455af23894
<Jafet> (echo \'#!/bin/sh\'; echo \'if [ $# -ne 0 ]; then for f in "$@"; do echo "#!/bin/cat" && cat "$f"; done; else echo "#!/bin/cat" && cat; fi\') > bin/makequine && chmod +x bin/makequine
author | HackBot |
---|---|
date | Wed, 06 Mar 2013 14:46:16 +0000 |
parents | 7914d7e0b500 |
children | 7152b2168b1b |
line wrap: on
line source
#!/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