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=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16627 invoked from network); 11 Oct 2022 20:41:14 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 11 Oct 2022 20:41:14 -0000 Received: from vultr.musolino.id.au ([45.76.123.158]) by 9front; Tue Oct 11 16:40:04 -0400 2022 Received: from 2.198.0.150 ([2.198.0.150]) by vultr; Wed Oct 12 07:39:23 +1100 2022 Date: Tue, 11 Oct 2022 22:39:19 +0200 From: Alex Musolino To: 9front@9front.org Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: advanced API just-in-time method-scale manager Subject: Re: [9front] [PATCH] hget: file name detection Reply-To: 9front@9front.org Precedence: bulk > @@ -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.