NetBSD-Users archive

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

Re: bmake variable expansion: ${X:ts:}



> On Jul 5, 2022, at 4:53 PM, RVP <rvp%SDF.ORG@localhost> wrote:
> 
> On Tue, 5 Jul 2022, Brook Milligan wrote:
> 
>> If :ts will not break a variable into a new set of words based upon the separator, what does it do?  What is it for?
>> 
> 
> I think :ts is analogous to how the ORS var. is used in awk:
> 
> Ie. uses a different char. as word-separator on expansion. Words are still
> only broken only on WS, I think.

I think I’m trying to wrap my head around the difference.

What is the difference between “word-separator on expansion” and “words broken”?

I think you are saying that the “word separator” (i.e., defined by :ts) does not “break” words.  There must be some subtle distinction that I do not understand.  How can the result of :ts be used if it does not break a string into distinct words?

Cheers,
Brook



Home | Main Index | Thread Index | Old Index