Re: Directing into a variable doesn't work

2018-06-25 Thread L A Walsh
Martijn Dekker wrote: Op 24-06-18 om 05:08 schreef Peter Passchier: With memory being abundant and filesystem access expensive, I want to put stdout and stderr of a command into variables (without needing to write to a file): output=$($command 2>>>errors) This would not work even i

Re: Directing into a variable doesn't work

2018-06-25 Thread Peter Passchier
On 06/25/2018 08:11 PM, Chet Ramey wrote: > The answer is ultimately the same as it was last month: > > http://lists.gnu.org/archive/html/bug-bash/2018-05/msg00056.html Oh wow, you replied..! I never got this in my inbox somehow... I guess it is syntactic sugar (although Greg's post shows it isn

Re: Directing into a variable doesn't work

2018-06-25 Thread Chet Ramey
On 6/24/18 11:26 AM, Peter Passchier wrote: > Thank you for the feedback, very insightful. Yes, scratch that first > 'example'. Yay for the here-variable redirection! The answer is ultimately the same as it was last month: http://lists.gnu.org/archive/html/bug-bash/2018-05/msg00056.html -- ``Th