help-bash
[Top][All Lists]
Advanced

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

Re: is there a way to save stdout and stderr to two bash variables?


From: Peng Yu
Subject: Re: is there a way to save stdout and stderr to two bash variables?
Date: Tue, 12 May 2020 12:44:52 -0500

> $ ls -la /dev/fd/0 <<< Here
> lr-x------. 1 murase murase 64 2020-05-12 09:42:22 /dev/fd/0 ->
> /tmp/sh-thd.ZLmXgN (deleted)

I don't see /dev/fd/0 symbolically linked on Mac. How to show what
heredoc is turned to by bash?

$ ls -lg /dev/fd/0 <<< abc
-r-------- 0 wheel 4 2020/05/12-12:39:23 /dev/fd/0

-- 
Regards,
Peng



reply via email to

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