tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



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


Home | Main Index | Thread Index | Old Index