Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2013 10:41:38 -0700
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        Johan Kuuse <kuuse@redantigua.com>
Cc:        freebsd-doc@freebsd.org
Subject:   Re: FreeBSD Make question
Message-ID:  <20131028174138.4D5875807E@chaos.jnpr.net>
In-Reply-To: <CAGUU1d3JSwGtFwAPXbraVNZsjsoBby1j6AWKLK7p7_e5Erw34w@mail.gmail.com>
References:  <CAGUU1d1RQAuq=5rOczZnRnVo31Rh_xhYOnDP7-=ajVv4AnRwZA@mail.gmail.com> <alpine.GSO.1.10.1310241730590.4934@multics.mit.edu> <20131024214923.CB0AF5807E@chaos.jnpr.net> <CAGUU1d0DVRYO_GUryyJONbpTgxrsYFf=WeQkn63557stnpsaVQ@mail.gmail.com> <20131025174720.870B35807E@chaos.jnpr.net> <CAGUU1d3ExyGrqGo1K8ta2qB=iwsU=ivgZUv3k3swbg-TRjtPzA@mail.gmail.com> <20131025231000.C74665807E@chaos.jnpr.net> <CAGUU1d3JSwGtFwAPXbraVNZsjsoBby1j6AWKLK7p7_e5Erw34w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Mon, 28 Oct 2013 18:06:31 +0100, Johan Kuuse writes:
>> --------------------8<--------------------
>> TLIST = "/tmp/dir with space/one" "/tmp/another spacey thing/two"
>>
>> tlist=
>> .for t in ${TLIST}
>> tlist+= ${t:tW:S, ,?,g:S,",,g}
>> # the above :tW causes the value to be treated as one-word
>
>The ':tW' variable modifier seems to be pmake/fmake syntax.

it is bmake (NetBSD make) specific - tells make to treat the variable
value as one word - avoids the need to do things like:

frobbed != echo ${var} | sed 's, ,+,g'

:tw undoes the effect 

>Is there any similar, non-documented, "treat-as-one-word"-modifier
>avilable for FreeBSD Make?

fmake - no.





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