bug-bash
[Top][All Lists]
Advanced

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

Re: cat<(echo text) not same as cat <(echo text)


From: Clark Wang
Subject: Re: cat<(echo text) not same as cat <(echo text)
Date: Mon, 4 Jun 2018 16:40:12 +0800

On Mon, Jun 4, 2018 at 11:48 AM, Edward Huff <address@hidden> wrote:

> That is unexpected.
>

I agree it may look "unexpected" because "cat<file" is the same as "cat
<file". But for "cat<file", '<' is part of input/output redirection but '<'
in "cat<(echo text)" is not. Instead, "<(echo text)" is *process substition*
.

According to bash manual: "On systems that can support it, there is an
additional expansion available: *process substitution*. *This is performed
at the same time as tilde, parameter, variable, and arithmetic expansion
and command substitution.*"

-clark


reply via email to

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