bug-bash
[Top][All Lists]
Advanced

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

Re: nofork command substitution


From: Greg Wooledge
Subject: Re: nofork command substitution
Date: Fri, 19 May 2023 15:10:52 -0400

On Fri, May 19, 2023 at 06:35:50PM +0200, alex xmb ratchev wrote:
> so that i understand ,
> 
> var=${ awk ... }

There's no reason to use this new thing if you're calling awk, because
awk is an external program.  You might as well just use var=$( awk ... )
instead.

Either way, you're going to fork() and exec*() the external awk command.

> ${| awk } no difference

That one would give a different result because you're not assigning
anything to REPLY.  If I understand the new thing correctly.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]