help-bash
[Top][All Lists]
Advanced

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

Does this line create a subshell?


From: Robert E. Griffith
Subject: Does this line create a subshell?
Date: Sun, 22 May 2022 16:19:31 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

Does this line create a subshell when 'foo' is a loadable builtin that produces output on stdout?

   local line; read -r line <(builtin foo)

Would that line be about the same in the amount of runtime work done (i.e. just as quick) as writing the builtin to set the value of a shell variable whose name is passed into it?

   local line; builtin foo "line"

--BobG


reply via email to

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