-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: misc action: commit revision: path_from: revision_from: 2863ed85e74edaff40aef16d0e91c98e430c1060: path_to: revision_to:
commit 2863ed85e74edaff40aef16d0e91c98e430c1060 Author: epochqwert <epoch@hacking.allowed.org> Date: Tue May 12 03:34:00 2015 -0500 added a really slow shell implementation of grepurl. fixed cuturl when no arguments were given. would eat argv[0] as an argument. :/ diff --git a/nocompile/bin/grepurl b/nocompile/bin/grepurl new file mode 100755 index 0000000000000000000000000000000000000000..50dc51630dccd599f44611d0aede30f8d2199c0f --- /dev/null +++ b/nocompile/bin/grepurl @@ -0,0 +1,4 @@ +#!/bin/sh +while read URL;do + printf "%s" "$URL" | cuturl "$1" | grep "$2" >/dev/null && echo $URL +done diff --git a/src/bin/cuturl.c b/src/bin/cuturl.c
--- a/src/bin/cuturl.c +++ b/src/bin/cuturl.c @@ -58,9 +58,9 @@ int main(int argc,char *argv[]) { printf("To set default values use environment variables like: CUTURL_[OPTION]\n"); return 2; } - argc--; - argv++; } + argv++; + argc--; while(1) { scheme=0; username=0;
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 14:37:57 2024