Hi Stepan,

* Stepan Kasal wrote on Wed, Mar 28, 2007 at 05:41:35PM CEST:
> 
> echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
[...]
> BTW, could the same have been achieved by the following?
> 
>      sed 99q >conftest.sed <<_ACEOF
> $ac_script
> _ACEOF

Probably.  But here-documents are _very_ expensive for old shells (the
number of links created grows with complexity of surrounding script
even), and mildly expensive even for some new shells (creation and
removal of a temp file).  Redirections of file descriptors are very
cheap, for any shell I know (a syscall or two).

Cheers,
Ralf


Reply via email to