[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The difference between `X=x f | cat` and `{ X=x; f; } | cat`
From: |
Emanuele Torre |
Subject: |
Re: The difference between `X=x f | cat` and `{ X=x; f; } | cat` |
Date: |
Thu, 19 Jan 2023 16:07:07 +0100 |
User-agent: |
K-9 Mail for Android |
On 19 January 2023 16:01:06 CET, Peng Yu <pengyu.ut@gmail.com> wrote:
> Thanks. But my question is about f being a bash function. I don't care
> when f is not a function. I know X will be defined in the environment
> in the latter case, whether f is a function or not.
It doesn't matter that f is a function. You should also know that
shell functions can run external commands.
emanuele6
- The difference between `X=x f | cat` and `{ X=x; f; } | cat`, Peng Yu, 2023/01/19
- Re: The difference between `X=x f | cat` and `{ X=x; f; } | cat`, Peng Yu, 2023/01/20
- Re: The difference between `X=x f | cat` and `{ X=x; f; } | cat`, Peng Yu, 2023/01/20
- Re: The difference between `X=x f | cat` and `{ X=x; f; } | cat`, Kerin Millar, 2023/01/20
- Re: The difference between `X=x f | cat` and `{ X=x; f; } | cat`, Peng Yu, 2023/01/20
Re: The difference between `X=x f | cat` and `{ X=x; f; } | cat`, Emanuele Torre, 2023/01/19