[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Incorrect alias expansion within command substitution
From: |
Chet Ramey |
Subject: |
Re: Incorrect alias expansion within command substitution |
Date: |
Thu, 3 Feb 2022 16:54:58 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 |
On 2/3/22 4:14 PM, Alex fxmbsw7 Ratchev wrote:
alias 0='echo ' 1='$(( ' 2=')) ' data=2+3' '
thats why this doesnt work, or what
0 1 data 2
Come on.
This expands to four words:
echo
$((
2+3
))
that is not the arithmetic expansion you thought you were looking for.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
- Re: Incorrect alias expansion within command substitution, (continued)
- Re: Incorrect alias expansion within command substitution, L A Walsh, 2022/02/02
- Message not available
- Re: Incorrect alias expansion within command substitution, Robert Elz, 2022/02/01
- Re: Incorrect alias expansion within command substitution, Chet Ramey, 2022/02/01
- Re: Incorrect alias expansion within command substitution, Robert Elz, 2022/02/01
- Re: Incorrect alias expansion within command substitution, Chet Ramey, 2022/02/02
- Re: Incorrect alias expansion within command substitution, Robert Elz, 2022/02/02
- Re: Incorrect alias expansion within command substitution, Chet Ramey, 2022/02/03
- Re: Incorrect alias expansion within command substitution, Alex fxmbsw7 Ratchev, 2022/02/03
- Re: Incorrect alias expansion within command substitution, Alex fxmbsw7 Ratchev, 2022/02/03
- Re: Incorrect alias expansion within command substitution,
Chet Ramey <=
- Re: Incorrect alias expansion within command substitution, Robert Elz, 2022/02/03
- Re: Incorrect alias expansion within command substitution, Chet Ramey, 2022/02/04
- Re: Incorrect alias expansion within command substitution, Alex fxmbsw7 Ratchev, 2022/02/03
- Re: Incorrect alias expansion within command substitution, Chet Ramey, 2022/02/04
- Re: Incorrect alias expansion within command substitution, Alex fxmbsw7 Ratchev, 2022/02/04
- Re: Incorrect alias expansion within command substitution, Chet Ramey, 2022/02/04
- Re: Incorrect alias expansion within command substitution, Alex fxmbsw7 Ratchev, 2022/02/04
- Re: Incorrect alias expansion within command substitution, Alex fxmbsw7 Ratchev, 2022/02/04
- Re: Incorrect alias expansion within command substitution, Chet Ramey, 2022/02/05
- Re: Incorrect alias expansion within command substitution, Robert Elz, 2022/02/04