ref: 4a14c59a1295828bc888f7780b684869e21bd6e7
parent: c7044cd29df4cd33177fc5d339abf26c3790d5ce
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Thu Oct 18 10:55:56 EDT 2012
hpost: better handling of optional -u flag
--- a/rc/bin/hpost
+++ b/rc/bin/hpost
@@ -23,13 +23,12 @@
shift
}
-# tired of typing -u
-if(~ $1 http://* https://*){+if(~ $#url 0){url=$1
shift
}
-if(~ $#url 0)
+if(~ $url '')
usage
while(! ~ $#* 0){--
⑨