On 6/4/22 17:15, Chet Ramey wrote:
> On 6/4/22 6:08 PM, Rob Landley wrote:
>> Why does this work:
>>
>> $ [[ $(cat) == "a b" ]] <<< "a b" > potato && rm potato && echo yes
>> yes
>
> Here-strings are redirections, and a redirection may follow a compound
> command.
>
>> But this is an error?
>>
On 6/4/22 6:08 PM, Rob Landley wrote:
Why does this work:
$ [[ $(cat) == "a b" ]] <<< "a b" > potato && rm potato && echo yes
yes
Here-strings are redirections, and a redirection may follow a compound
command.
But this is an error?
$ [[ $(cat) == "a b" ]] <(echo a b) > potato && rm potato
Why does this work:
$ [[ $(cat) == "a b" ]] <<< "a b" > potato && rm potato && echo yes
yes
But this is an error?
$ [[ $(cat) == "a b" ]] <(echo a b) > potato && rm potato && echo yes
bash: syntax error near unexpected token `<(echo a b)'
It actually seems to exclude <(subcommands) from all
On 2022-06-03 09:43:31, enh via Toybox wrote:
>On Fri, Jun 3, 2022 at 9:27 AM Rob Landley wrote:
>
> On 6/2/22 19:41, enh wrote:
> > Oh, yeah, I think *especially* for macOS where pretty much everyone is
> always on
> > the latest version anyway, unless your Mac
On 2022-06-03 11:37:52, Rob Landley wrote:
> On 6/2/22 19:48, David Seikel wrote:
> > On 2022-06-02 17:41:09, enh via Toybox wrote:
> >>Oh, yeah, I think *especially* for macOS where pretty much everyone is
> >>always on the latest version anyway, unless your Mac equivalent of the
> >>