summaryrefslogtreecommitdiff
path: root/rc/bin
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2012-03-16 12:58:01 -0500
committerstanley lieber <stanley.lieber@gmail.com>2012-03-16 12:58:01 -0500
commit692d66feff7f39062d12392164591fbe0fea776c (patch)
tree6734c0752d0ef0de2e962dcbf3098f9cfc13ba07 /rc/bin
parent9c71514b7158cfa8102b6a32775b783fcd9681ed (diff)
downloadplan9front-692d66feff7f39062d12392164591fbe0fea776c.tar.xz
hget: -p should work the same as in old hget
Diffstat (limited to 'rc/bin')
-rwxr-xr-xrc/bin/hget4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/bin/hget b/rc/bin/hget
index a093e7a5c..456984436 100755
--- a/rc/bin/hget
+++ b/rc/bin/hget
@@ -51,8 +51,8 @@ if(! ~ $s 0)
echo -n headers $i >[1=0]
if(~ $#m 1)
echo -n request $m >[1=0]
- if(~ $#p 1)
- cat <$p >$d/postbody
+ if(! ~ $#p 0)
+ echo $"p >$d/postbody
<$d/body {
if(~ $#o 1){
l=`{cat $d/contentlength >[2]/dev/null}