Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Capture stdout, stdin, and exit status in different variables without using temporary files



>> (){ STDOUT=$( your-command-here 2> $1) STDERR=$(<$1);} =(:)
>
> The OP is asking for a solution that doesn't use temporary files, so this doesn't fit.

My apologies, I didn't realize that this method used temporary files.

TjL



Messages sorted by: Reverse Date, Date, Thread, Author