A NOTE has been added to this issue. ====================================================================== https://www.austingroupbugs.net/view.php?id=1342 ====================================================================== Reported By: kre Assigned To: ====================================================================== Project: 1003.1(2016)/Issue7+TC2 Issue ID: 1342 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: New Name: Robert Elz Organization: User Reference: Section: XCU 2.2.3 Page Number: 2346 Line Number: 74721 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2020-05-05 08:50 UTC Last Modified: 2020-05-05 17:43 UTC ====================================================================== Summary: Aliases in command substitutions are handled differently when the command subst is quoted vs not quoted ====================================================================== Relationships ID Summary ---------------------------------------------------------------------- related to 0000953 Alias expansion is under-specified ======================================================================
---------------------------------------------------------------------- (0004863) kre (reporter) - 2020-05-05 17:43 https://www.austingroupbugs.net/view.php?id=1342#c4863 ---------------------------------------------------------------------- OK, we can add text that makes it clear (just in case it wasn't already obvious) that the entire command in a command substitution is parsed before any of it is executed. And given that, alias commands in the command substitution cannot work - the command substitution is a subshell environment, so the parent shell cannot be affected, and any aliases defined there get defined too late to be used within the command substitution. Alias in a sub-shell block '(' code ')' have the same uselessness. Aliases in general are largely useless, let's delete them!!! Issue History Date Modified Username Field Change ====================================================================== 2020-05-05 08:50 kre New Issue 2020-05-05 08:50 kre Name => Robert Elz 2020-05-05 08:50 kre Section => XCU 2.2.3 2020-05-05 08:50 kre Page Number => 2346 2020-05-05 08:50 kre Line Number => 74721 2020-05-05 10:57 geoffclare Note Added: 0004856 2020-05-05 15:36 kre Note Added: 0004859 2020-05-05 15:52 geoffclare Note Added: 0004860 2020-05-05 15:53 geoffclare Relationship added related to 0000953 2020-05-05 17:43 kre Note Added: 0004863 ======================================================================