From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11414 invoked from network); 12 Oct 2022 04:34:14 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 12 Oct 2022 04:34:14 -0000 Received: from pb-smtp20.pobox.com ([173.228.157.52]) by 9front; Wed Oct 12 00:33:12 -0400 2022 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id D18BF1B0F61 for <9front@9front.org>; Wed, 12 Oct 2022 00:33:00 -0400 (EDT) (envelope-from unobe@cpan.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id :to:subject:date:from:in-reply-to:mime-version:content-type :content-transfer-encoding; s=sasl; bh=+fBVcBgPkR4pcBlFjj97a293W /+SSwQVi2HA2tGOE6A=; b=rfpo8MQtSCwQGs3GCF4x/dyuBYeM05DWvOjoZRexr UREk5vZAkxaIUra0B5sGiTptAOdj9SxgVpzOVSkHuHMl7ae6tDG7ZXRWuuhqkNBO uZ3JkOnSxETE294meUc1y/HFtvNIAkZRkpYR6eXmLwFNxuTkc7OyAPgO4dDMV7J1 9A= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id CB47F1B0F60 for <9front@9front.org>; Wed, 12 Oct 2022 00:33:00 -0400 (EDT) (envelope-from unobe@cpan.org) Received: from strider.localdomain (unknown [75.237.206.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id D80021B0F5F for <9front@9front.org>; Wed, 12 Oct 2022 00:32:57 -0400 (EDT) (envelope-from unobe@cpan.org) Message-ID: To: 9front@9front.org Date: Tue, 11 Oct 2022 21:32:55 -0700 From: unobe@cpan.org In-Reply-To: <4f949543-a147-1699-86cf-55debf8cca98@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: F297B05A-49E6-11ED-A63C-C2DA088D43B2-09620299!pb-smtp20.pobox.com List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: object-oriented map/reduce-oriented content-driven wrapper Subject: Re: [9front] [PATCH] hget: file name detection Reply-To: 9front@9front.org Precedence: bulk Quoth mkf9 : > Can you mention a example? > i don't understand first one and simple URLs with queries in them worked > for me. > > Alex Musolino wrote: > >> @@ -34,6 +34,8 @@ > >> case -b > >> b=$2 > >> shift > >> + case -a > >> + o=`{basename $2} > >> case * > >> usage > >> } > > > > This assumes that the URL immediately follows the '-a' which it won't > > in general. That aside, the idea probably doesn't work so well when > > you have URLs with a query component either. > > > 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