Re: shell quoting (was: Improving the performance of system boot by eliding unused rc.d scripts and caching the result)

Valery Ushakov <[email protected]>
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
On Wed, Aug 19, 2026 at 11:17:45 +0200, Edgar Fuß wrote:

> > Though people still write quotes around simple words like in things like
> > 	[ "${ans}" = "yes" ]
> > The quotes in "${ans}" are needed, those around yes are silly.
> Well, it looks more symmetric to the eye and even in
> 	foo="foo bar"
> I find the quotes useful.

"It's not just a good idea, it's the law" :)

Compare

  foo="foo env"

vs.

  foo=foo env

:)


> At least for someone like me skipping between programming languages
> in one project (I always need to look up which one of sh/bmake/perl
> has elif/elsif/elseif).

Amen!


-uwe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.