From: mkf9 <mkf9@riseup.net>
To: 9front@9front.org
Subject: Re: [9front] [PATCH] hget: file name detection
Date: Thu, 13 Oct 2022 01:31:20 +0330 [thread overview]
Message-ID: <569da4d3-d380-9277-8742-ab85d9ec53cf@riseup.net> (raw)
In-Reply-To: <A7E42707AD296BDCDF98CCD349D5E20D@smtp.pobox.com>
unobe@cpan.org wrote:
> For an example of the first thing Alex brought up:
>
> hget -a -b http://www.example.com/videos ../images/image01.jpg
>
> The '?' and following is a query component:
>
> https://www.example.com/your.jpg?_dc=19594393
>
I have tried some URLs with queries with them
and haven't seen any which fails, why should they?
for the other issue, i think this version will do.
--- /bin/hget
+++ /bin/hget
@@ -2,7 +2,7 @@
rfork e
argv0=$0
fn usage {
- echo usage: $argv0 '[ -l | -o file] [ -p body | -P ] [ -r header ] [
-m method ] [ -b baseurl ] url' >[1=2]
+ echo usage: $argv0 '[ -l | -a | -o file] [ -p body | -P ] [ -r header
] [ -m method ] [ -b baseurl ] url' >[1=2]
exit usage
}
s=0
@@ -34,6 +34,8 @@
case -b
b=$2
shift
+ case -a
+ o=`{basename $$#*}
case *
usage
}
next prev parent reply other threads:[~2022-10-12 22:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-11 19:11 mkf9
2022-10-11 20:39 ` Alex Musolino
2022-10-12 2:50 ` mkf9
2022-10-12 4:32 ` unobe
2022-10-12 11:31 ` umbraticus
2022-10-12 22:01 ` mkf9 [this message]
2022-10-15 21:07 Alex Musolino
2022-10-15 21:10 ` Alex Musolino
2022-10-15 22:51 ` ori
2022-10-16 19:59 ` Alex Musolino
2022-10-16 21:53 ` ori
2022-10-16 6:00 ` mkf9
2022-10-16 20:02 ` Alex Musolino
2022-10-16 20:17 ` Stanley Lieber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=569da4d3-d380-9277-8742-ab85d9ec53cf@riseup.net \
--to=mkf9@riseup.net \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).