changeset 7925:2c335d004eab

<shachaf> ` sed -i \'s#1053793#"$(ls -id /hackenv/wisdom | cut -d\\ -f 1)"#\' bin/ls
author HackBot
date Sat, 07 May 2016 01:24:39 +0000
parents 4fe3ece4dd79
children e8784ab49e36
files bin/ls
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/ls	Sat May 07 01:23:34 2016 +0000
+++ b/bin/ls	Sat May 07 01:24:39 2016 +0000
@@ -1,2 +1,2 @@
 #!/bin/bash
-if /bin/ls -id "$@" 2>/dev/null | grep -q ^1053793 ; then echo 'As the wisdom directory contains many files named after nicks, listing it in public annoys people. Try listing it in private instead.'; else exec -a ls /bin/ls "$@"; fi
+if /bin/ls -id "$@" 2>/dev/null | grep -q ^"$(ls -id /hackenv/wisdom | cut -d  -f 1)" ; then echo 'As the wisdom directory contains many files named after nicks, listing it in public annoys people. Try listing it in private instead.'; else exec -a ls /bin/ls "$@"; fi