summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-09-20 17:41:51 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-09-20 17:41:51 +0200
commit4e015eb5c7ba7ae1cb7b2e26997a7ba0eb02b626 (patch)
tree68426b09ff09500844e2ad4dffdd5b0e218ed28c
parent565a4d478e4631ca771e5d0f9e9120420f557b3c (diff)
parent91ce0a07ca23fc68a1b60c77f2127481d37ad458 (diff)
merge
-rwxr-xr-xrc/bin/hpost5
-rw-r--r--sys/man/1/hget2
2 files changed, 3 insertions, 4 deletions
diff --git a/rc/bin/hpost b/rc/bin/hpost
index adf54c75d..cab9c0be5 100755
--- a/rc/bin/hpost
+++ b/rc/bin/hpost
@@ -1,13 +1,12 @@
#!/bin/rc
rfork e
-argv0=$0
url=()
at=() # text fields
af=() # file fields
l=()
fn usage {
- echo usage: $argv0 '[ -l ] [ -[gpm] action ] [ -u ] url [ field:value | field@file ... ]' >[1=2]
+ echo 'usage: hpost [ -l ] [ -[gpm] action ] [ -u ] url [ field:value | field@file ... ]' >[1=2]
exit usage
}
@@ -41,7 +40,7 @@ while(! ~ $#* 0){
shift
}
-hpost=($argv0 $l)
+hpost=(hpost $l)
fn uenc {
f=$1
diff --git a/sys/man/1/hget b/sys/man/1/hget
index 037bfd7dc..cd2f0d052 100644
--- a/sys/man/1/hget
+++ b/sys/man/1/hget
@@ -204,7 +204,7 @@ edited and sent.
.IP
.EX
% hpost http://p.intma.in
-/bin/hpost -u http://p.intma.in -p paste.cgi text:
+hpost -u http://p.intma.in -p paste.cgi text:
.EE
.PP
Manually specify fields to be sent to a given