From owner-freebsd-questions@freebsd.org Mon Oct 9 12:20:10 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EE950E2EDA3 for ; Mon, 9 Oct 2017 12:20:10 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A5FA6F2CE for ; Mon, 9 Oct 2017 12:20:10 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v99CK3kv000879 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 9 Oct 2017 06:20:03 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v99CK3ia000860; Mon, 9 Oct 2017 06:20:03 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 9 Oct 2017 06:20:03 -0600 (MDT) From: Warren Block To: Paul Schmehl cc: Polytropon , freebsd-questions@freebsd.org Subject: Re: Scripting problem In-Reply-To: <88D321A2CCD516AEF39DE8C3@Pauls-MacBook-Pro.local> Message-ID: References: <7AB396F429EEB6890100F082@Pauls-MacBook-Pro.local> <8C8E7D66788801594EC0FC4C@Pauls-MacBook-Pro.local> <20171008100017.30ab5987.freebsd@edvax.de> <88D321A2CCD516AEF39DE8C3@Pauls-MacBook-Pro.local> User-Agent: Alpine 2.21 (BSF 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Mon, 09 Oct 2017 06:20:04 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2017 12:20:11 -0000 On Sun, 8 Oct 2017, Paul Schmehl wrote: > --On October 8, 2017 at 10:00:17 AM +0200 Polytropon > wrote: >> >> Now -s will receive "Foo Bar Baz" (without the quotes). Use double >> quotes because you want shell expansion / variable evaluation. >> >> It's not mutt's fault. :-) > > I've considered myself a journeyman in FreeBSD, having used it for about > twenty years now. I guess I need to go back to being an apprentice. I > obviously don't understand how the shell works yet. > > Oh well, you're never too old to learn. Quoting is sh's biggest weakness. Well, that and lack of basic data structures, and the weak logical structures, and so on. Someone once said that if a script is longer than twenty lines or so, it probably ought to be done in a real scripting langugage. That was me, but Stephen Bourne has also said it. Yes, that Stephen Bourne.