From owner-freebsd-questions@freebsd.org Fri Oct 16 11:25:42 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0B3D343185F for ; Fri, 16 Oct 2020 11:25:42 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CCP391z41z4p7x for ; Fri, 16 Oct 2020 11:25:41 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4CCP2r2rD5zFtS7 for ; Fri, 16 Oct 2020 04:25:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1602847532; bh=PWOP8QpOWvBYc0GgWxpR9GAqL4PXrxUjGal7m3g/bN0=; h=Date:From:To:Subject:In-Reply-To:References:From; b=ap7BZNrIc7StyAnrBcQ1gW5jLfQiI/Wr9vVe+iSQk4qPMrJ3Inu/j72sijDYUxtxk IIoQOfGzEPntmT9QaAEMS8f74stWbcUq+24uRscEwFXwb12A/yCJS1WfGvpzSAPWtw ZzzO642poMnb3TgRIMGtNeRy5e020HWMOhtIezGw= X-Riseup-User-ID: 4DFD3AE4343CAB2FD50270C880FCD1455C58FA9E85A06F171C09FD08D3F3714C Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 4CCP2q5GwQz8vXV for ; Fri, 16 Oct 2020 04:25:23 -0700 (PDT) Date: Fri, 16 Oct 2020 13:25:16 +0200 From: Ralf Mardorf To: freebsd-questions@freebsd.org Subject: Re: sh scripting question Message-ID: <20201016132516.71e06c69@archlinux> In-Reply-To: References: <20201016113408.16d58d68@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4CCP391z41z4p7x X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=riseup.net header.s=squak header.b=ap7BZNrI; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (mx1.freebsd.org: domain of ralf-mardorf@riseup.net designates 198.252.153.129 as permitted sender) smtp.mailfrom=ralf-mardorf@riseup.net X-Spamd-Result: default: False [-4.39 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[riseup.net:s=squak]; NEURAL_HAM_MEDIUM(-0.98)[-0.980]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[198.252.153.129:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[riseup.net:dkim]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[riseup.net:+]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; NEURAL_HAM_SHORT(-0.79)[-0.792]; NEURAL_HAM_LONG(-1.02)[-1.020]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_NOT_FQDN(0.50)[]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions]; RCVD_IN_DNSWL_LOW(-0.10)[198.252.153.129:from] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2020 11:25:42 -0000 On Fri, 16 Oct 2020 15:55:59 +0530, Manish Jain wrote: >Hi Ralf, > >This is where I actually have an entirely different philosophy. When >you create a file with a leading - (or for that matter, weird >characters such as * anywhere in the filename) [snip] I can't notice a different philosophy. We agree again. I just wanted to point out, that our scripts might need to be able to handle some imported iDroidWindowsCamEmailAttachment file names, at least to some extend, but we and anybody using systems we might administrate, should apply a minimum of convention, compatibility, portability. Let alone that a apart from little girls nobody tend to name a file ***such a cute cat ;)... and only complete unworldly users use uninformatively names such as -*. On the quick I was unable to create a file with a / in it's name (Linux, login shell bash, just using shell commands, no tool explicitly aimed to edit/corrupt file system entries). I guess a file name containing a "/" overTRUMPs all other odd file names.