# HG changeset patch # User HackBot # Date 1355037808 0 # Node ID 797fb6694b971e986c2f53825c221212167641ed # Parent b08f43cad39470c3ebc340ef49db844b3c447cdf cp bin/quote bin/realquote; echo -n $'#!/bin/sh\nsleep 1\nrealquote "$@"\n' > bin/quote diff -r b08f43cad394 -r 797fb6694b97 bin/quote --- 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 "$@" diff -r b08f43cad394 -r 797fb6694b97 bin/realquote --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/realquote Sun Dec 09 07:23:28 2012 +0000 @@ -0,0 +1,8 @@ +#!/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