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

Re: detect pipe



On Wed, Jan 27, 2021 at 8:57 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> On 2021-01-27 3:59 p.m., Bart Schaefer wrote:
> > [[ -p /dev/fd/0 ]]
> Nuts, using that it turns out that the issue is that my functions tend
> to be called via aliases:

That makes no sense at all.  Have you tried doing your test with "set
-x" (setopt xtrace) in effect so that you get a trace of exactly
what's happening?




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