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=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29562 invoked from network); 18 Dec 2020 22:47:30 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 18 Dec 2020 22:47:30 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kqOX3-00CFK4-9W for ml@inbox.vuxu.org; Fri, 18 Dec 2020 16:47:29 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1kqOX2-000gUk-N8 for ml@inbox.vuxu.org; Fri, 18 Dec 2020 16:47:28 -0600 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kqOX2-000gUf-2x for ding@lists.math.uh.edu; Fri, 18 Dec 2020 16:47:28 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kqOX0-00CFJs-7b for ding@lists.math.uh.edu; Fri, 18 Dec 2020 16:47:27 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cW3OgSWjsAAHrovYqZuCOmW42KOpZbJZ1k0f3ijhah0=; b=VrMSDdHBcf2wonAU5cxOesML5i +fypgtb8GNTgB6oAqxz/7spkg03SyEOaZHRaUzceTAz4/aDFB00+x/BD4Bq/S2M06vuw+UOHjJcw4 axdTNBHXuM/2akcp3SX547W7iBtX1fT4bjItQVT1x+okFdmyemFBbXrV1tPFy7X4hICA=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kqOWt-0008Nc-Qm for ding@gnus.org; Fri, 18 Dec 2020 23:47:22 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kqOWr-0007A8-TM for ding@gnus.org; Fri, 18 Dec 2020 23:47:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Emanuel Berg Subject: Re: download attachment and do chmod for certain files Date: Fri, 18 Dec 2020 23:47:12 +0100 Message-ID: <87pn36wx3j.fsf@zoho.eu> References: <87v9d2g14c.fsf@zoho.eu> <87mtydvdfn.fsf@ericabrahamsen.net> <877dphsjdn.fsf@tullinup.koldfront.dk> <87bleqyfvz.fsf@zoho.eu> <874kkirdic.fsf@igel.home> <87wnxewxih.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:fkYea5iUSAcgZk99iiozaQm6cao= Mail-Copies-To: never List-ID: Precedence: bulk Emanuel Berg wrote: >>>> P.S. (format "0%o" 420) → 0644 rw--r--r- [...] >>> >>> $ echo $(( 4*8**0 + 4*8**1 + 6*8**2 )) # 420 >> >> $ echo $((0644)) > > Ah, in bash it works! > > $ echo $(( 0644 )) # 420 > > Cool :) > > GNU bash, version 5.0.3(1)-release (x86_64-pc-linux-gnu) in zsh: $ echo $(( 8#644 )) # 420 zsh 5.7.1 (x86_64-debian-linux-gnu) -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal