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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30971 invoked from network); 12 Oct 2022 02:52:04 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 12 Oct 2022 02:52:04 -0000 Received: from mx1.riseup.net ([198.252.153.129]) by 9front; Tue Oct 11 22:50:54 -0400 2022 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4MnHFw6cDlzDqJM for <9front@9front.org>; Wed, 12 Oct 2022 02:50:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1665543044; bh=z28d+9UBqiZQz7c0xQvneKbp+c+//QiZclA9Zn+tQUQ=; h=Subject:To:References:From:Date:In-Reply-To:From; b=OLFgz+DTyosDhvVIzVuU83NPn5IkuEPJXYqN5+onFYYiMHXFQaza0Mt1XpCaQvOhT M9pPAqv1KTkSJ7Vx2kSL+vmcHhx0rvF/Fed4LJY/j5h8FX4ERmOyCLEwLgIIbPbzKN wwKm2FfjBVC0FDdKRWc0trhqTKQMHuCxHOG8zQEk= X-Riseup-User-ID: 65F84140D849FB0DE61EF76BF2C7143FB59A9D8B00667F474013A594B9A6E464 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4MnHFv73Mqz1yRB for <9front@9front.org>; Wed, 12 Oct 2022 02:50:43 +0000 (UTC) To: 9front@9front.org References: From: mkf9 Message-ID: <4f949543-a147-1699-86cf-55debf8cca98@riseup.net> Date: Wed, 12 Oct 2022 06:20:37 +0330 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: engine hosting content-driven solution Subject: Re: [9front] [PATCH] hget: file name detection Reply-To: 9front@9front.org Precedence: bulk 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. >