From owner-freebsd-questions@freebsd.org Fri Oct 16 12:00:35 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 181C7433056 for ; Fri, 16 Oct 2020 12:00:35 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4CCPqQ6J4vz4rlW for ; Fri, 16 Oct 2020 12:00:34 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: by mailman.nyi.freebsd.org (Postfix) id D7F15432C74; Fri, 16 Oct 2020 12:00:34 +0000 (UTC) Delivered-To: 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 D7BAD432E50 for ; Fri, 16 Oct 2020 12:00:34 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4CCPqP6nlkz4rrB for ; Fri, 16 Oct 2020 12:00:33 +0000 (UTC) (envelope-from roberthuff@rcn.com) DKIM-Signature: v=1; a=rsa-sha1; d=rcn.com; s=20180516; c=relaxed/simple; q=dns/txt; i=@rcn.com; t=1602849632; h=From:Subject:Date:To:MIME-Version:Content-Type; bh=zPH+4C9CTXBeEZ9tbgviIlAP2Xo=; b=VZrgiExEFMjteHvkAUJeiX+804Wrhl+FgG/NX/WMQaIlAEsIsSUkcPoowTcigmy6 nOG+90G5fNu2k2h2Lp+nuXMqLBY5nEaMLjwqI1oELjmAJSJCB0LVZuztYxVEnCqa rQgvAf9ZSeOZy61zgDlZUNeQyix9chyvVhfpPZfPHNAHl2knfEVeQY2v9QRh6dou kqZP7JkdQF8bYGH0WLNP+0jWrJqSq+d//thIYrKCSUVVBnqTzmY1Bz0o/oTM2E5G 4+UuMUHrdqUQKCbBsDnhdcCYRFGt9JSKvetRP0OVFJVXQOk7rWPMc1OfAHXRyYtg eE471pgEfYEduQ0IjGgPQQ==; X_CMAE_Category: , , X-CNFS-Analysis: v=2.3 cv=OswxNB3t c=1 sm=1 tr=0 cx=a_idp_x a=9TgA2UwI6Wy+6BV4wQM/cQ==:117 a=9TgA2UwI6Wy+6BV4wQM/cQ==:17 a=KGjhK52YXX0A:10 a=kj9zAlcOel0A:10 a=XRQyMpdBKAEA:10 a=afefHYAZSVUA:10 a=48faUk6PgeAA:10 a=2v6Nz8L8GH7cKgcV3QAA:9 a=CjuIK1q_8ugA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: cm9iZXJ0aHVmZkByY24uY29t Received: from [209.6.230.48] ([209.6.230.48:44863] helo=jerusalem.litteratus.org.litteratus.org) by smtp.rcn.com (envelope-from ) (ecelerity 3.6.25.56547 r(Core:3.6.25.0)) with ESMTPSA (cipher=AES256-GCM-SHA384) id 11/FA-38180-06B898F5; Fri, 16 Oct 2020 08:00:32 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <24457.35680.223661.203846@jerusalem.litteratus.org> Date: Fri, 16 Oct 2020 08:00:32 -0400 From: Robert Huff To: Manish Jain CC: questions@freebsd.org Subject: Re: sh scripting question In-Reply-To: References: <20201016113408.16d58d68@archlinux> X-Mailer: VM 8.2.0b under 27.1 (amd64-portbld-freebsd13.0) X-Rspamd-Queue-Id: 4CCPqP6nlkz4rrB X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=rcn.com header.s=20180516 header.b=VZrgiExE; dmarc=pass (policy=none) header.from=rcn.com; spf=pass (mx1.freebsd.org: domain of roberthuff@rcn.com designates 69.168.97.78 as permitted sender) smtp.mailfrom=roberthuff@rcn.com X-Spamd-Result: default: False [-2.47 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[rcn.com:s=20180516]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:69.168.97.0/24]; NEURAL_HAM_LONG(-0.99)[-0.989]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_MEDIUM(-0.98)[-0.984]; DWL_DNSWL_LOW(-1.00)[rcn.com:dkim]; RWL_MAILSPIKE_POSSIBLE(0.00)[69.168.97.78:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[rcn.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[rcn.com,none]; NEURAL_HAM_SHORT(-0.40)[-0.400]; FREEMAIL_TO(0.00)[hotmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; INTRODUCTION(2.00)[]; ASN(0.00)[asn:36271, ipnet:69.168.97.0/24, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[questions]; RCVD_IN_DNSWL_LOW(-0.10)[69.168.97.78: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 12:00:35 -0000 Manish Jain writes: > We do not disagree here. The OP's "problem" isn't a big problem for a > shell script, assuming we are talking about file names such as > > foo bar 10-inch.txt > > and not > > foo "bar" \ 10".txt OP here. The filenames at hand were generated by "find" and - on casual inspection - have no oddities other than the embedded spaces. I leave the debate on the general case to those with more time, investment, and experience. Respectfully, Robert Huff -- Hello ... my name is Coronavirus. You are not wearing a mask? Prepare To Die!