[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Process substitution as part of a word [was: Incorrect alias expansion .
From: |
Martijn Dekker |
Subject: |
Process substitution as part of a word [was: Incorrect alias expansion ...] |
Date: |
Thu, 3 Feb 2022 14:09:31 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 |
Op 02-02-22 om 20:59 schreef Chet Ramey:
[...] it makes no sense to join a process substitution to another word.
But it does. In arguments that look like assignments, and in GNU-style
long options, file names can be part of a larger word.
Assuming tar is GNU tar, something like
tar -c -f txt.tar --files-from=<( ls *.txt )
works fine on bash and zsh, but not on ksh93; the process substitution
becomes a separate word and the command fails.
This was reported as a bug to the abandoned AT&T ksh2020 development
effort but never fixed there, and I've no clue how to fix it yet either.
https://github.com/att/ast/issues/1487
https://github.com/ksh93/ksh/issues/215
--
|| modernish -- harness the shell
|| https://github.com/modernish/modernish
||
|| KornShell lives!
|| https://github.com/ksh93/ksh
- Re: Incorrect alias expansion within command substitution, (continued)
- Re: Incorrect alias expansion within command substitution, Alex fxmbsw7 Ratchev, 2022/02/05
- Re: Incorrect alias expansion within command substitution, Chet Ramey, 2022/02/05
- Re: Incorrect alias expansion within command substitution, Alex fxmbsw7 Ratchev, 2022/02/05
- Re: Incorrect alias expansion within command substitution, Alex fxmbsw7 Ratchev, 2022/02/05
- Re: Incorrect alias expansion within command substitution, Lawrence Velázquez, 2022/02/05
- Re: Incorrect alias expansion within command substitution, Chet Ramey, 2022/02/05
- Re: Incorrect alias expansion within command substitution, Alex fxmbsw7 Ratchev, 2022/02/05
Re: Incorrect alias expansion within command substitution, Martijn Dekker, 2022/02/02
Re: Incorrect alias expansion within command substitution, L A Walsh, 2022/02/02
Message not available
Re: Incorrect alias expansion within command substitution, Chet Ramey, 2022/02/02