summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2013-09-20 17:39:33 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2013-09-20 17:39:33 +0200
commit91ce0a07ca23fc68a1b60c77f2127481d37ad458 (patch)
tree68036bf819815368660bc0ebed42c39cba044fb0 /rc
parent5e2478ccbb7927256f72cb749cf1a8d97dbbd4e9 (diff)
hpost: dont emit /bin/hpost but just hpost
just emiting "hpost" makes it simpler to override it as a rc function.
Diffstat (limited to 'rc')
-rwxr-xr-xrc/bin/hpost5
1 files changed, 2 insertions, 3 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