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.

./danfe
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to