[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Do `>& -` and `<& -` also work?
From: |
Peng Yu |
Subject: |
Do `>& -` and `<& -` also work? |
Date: |
Mon, 10 May 2021 09:12:44 -0500 |
Hi,
The manual only mentions `>&-` and `<&-`. Do `>& -` and `<& -` also work?
I tried the following and I don't see errors. But I can not be sure
whether `>& -` and `<& -` are exactly the same as `>&-` and `<&-`.
$ exec 42>& -
$ exec 42<& -
Could anybody confirm?
If they both work, is this made by design? Or it is just an artifact
of the parser (as I don't remember people write code like them)?
--
Regards,
Peng
- Do `>& -` and `<& -` also work?,
Peng Yu <=
- Re: Do `>& -` and `<& -` also work?, Koichi Murase, 2021/05/10
- Re: Do `>& -` and `<& -` also work?, Peng Yu, 2021/05/10
- Re: Do `>& -` and `<& -` also work?, Andreas Kusalananda Kähäri, 2021/05/10
- Re: Do `>& -` and `<& -` also work?, Peng Yu, 2021/05/10
- Re: Do `>& -` and `<& -` also work?, Chet Ramey, 2021/05/10
- Re: Do `>& -` and `<& -` also work?, Peng Yu, 2021/05/11
- Re: Do `>& -` and `<& -` also work?, Eli Schwartz, 2021/05/11
- Re: Do `>& -` and `<& -` also work?, Koichi Murase, 2021/05/12
- Re: Do `>& -` and `<& -` also work?, Peng Yu, 2021/05/12
- Re: Do `>& -` and `<& -` also work?, Koichi Murase, 2021/05/14