diff bin/quote @ 977:797fb6694b97

<shachaf> cp bin/quote bin/realquote; echo -n $'#!/bin/sh\nsleep 1\nrealquote "$@"\n' > bin/quote
author HackBot
date Sun, 09 Dec 2012 07:23:28 +0000
parents e037173e0012
children 44d4b2e5140d
line wrap: on
line diff
--- a/bin/quote	Sun Dec 09 04:53:05 2012 +0000
+++ b/bin/quote	Sun Dec 09 07:23:28 2012 +0000
@@ -1,8 +1,3 @@
 #!/bin/sh
-allquotes | if [ "$1" ]; then
-    if expr "$1" + 0 >/dev/null 2>&1; then
-        sed "$1q;d"
-    else
-        grep -P -i -- "$1"
-    fi
-else shuf -n 1; fi
+sleep 1
+realquote "$@"