svn commit: r334791 - head/share/mk
Bryan Drewery
bdrewery at FreeBSD.org
Thu Jun 7 19:37:58 UTC 2018
On 6/7/18 1:05 PM, Alexey Dokuchaev wrote:
> On Thu, Jun 07, 2018 at 04:44:20PM +0000, Alexey Dokuchaev wrote:
>> On Thu, Jun 07, 2018 at 04:16:22PM +0000, Bryan Drewery wrote:
>>> New Revision: 334791
>>> URL: https://svnweb.freebsd.org/changeset/base/334791
>>>
>>> Log:
>>> Stop using head(1) which is not available in installworld.
>>> ...
>>> @@ -49,7 +49,7 @@ ${var}= ${${var}.${${X_}_ld_hash}}
>>>
>>> .if ${ld} == "LD" || (${ld} == "XLD" && ${XLD} != ${LD})
>>> .if !defined(${X_}LINKER_TYPE) || !defined(${X_}LINKER_VERSION)
>>> -_ld_version!= (${${ld}} --version || echo none) | head -n 1
>>> +_ld_version!= (${${ld}} --version || echo none) | sed -n '1,1p'
>>
>> You don't need to specify the range actually, and the quotes. Simple
>> `sed -n 1p' looks shorter and does not raise unnecessary questions.
Yup makes sense, thanks.
>
> Actually, `sed q' is sufficient.
>
I'll stick with -n 1p as I think it is more clear.
> ./danfe
>
--
Regards,
Bryan Drewery
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20180607/f78ce561/attachment.sig>
More information about the svn-src-all
mailing list