Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Oct 2017 06:20:03 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Paul Schmehl <pschmehl_lists@tx.rr.com>
Cc:        Polytropon <freebsd@edvax.de>, freebsd-questions@freebsd.org
Subject:   Re: Scripting problem
Message-ID:  <alpine.BSF.2.21.1710090615040.94613@wonkity.com>
In-Reply-To: <88D321A2CCD516AEF39DE8C3@Pauls-MacBook-Pro.local>
References:  <7AB396F429EEB6890100F082@Pauls-MacBook-Pro.local> <VI1PR02MB1200B33C1F59A223B84E9153F6770@VI1PR02MB1200.eurprd02.prod.outlook.com> <8C8E7D66788801594EC0FC4C@Pauls-MacBook-Pro.local> <20171008100017.30ab5987.freebsd@edvax.de> <88D321A2CCD516AEF39DE8C3@Pauls-MacBook-Pro.local>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 8 Oct 2017, Paul Schmehl wrote:

> --On October 8, 2017 at 10:00:17 AM +0200 Polytropon <freebsd@edvax.de> 
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.21.1710090615040.94613>