A NOTE has been added to this issue. ====================================================================== http://austingroupbugs.net/view.php?id=1276 ====================================================================== Reported By: stephane Assigned To: ====================================================================== Project: 1003.1(2013)/Issue7+TC1 Issue ID: 1276 Category: Shell and Utilities Type: Error Severity: Objection Priority: normal Status: New Name: Stephane Chazelas Organization: User Reference: Section: 2.10.2 shell grammar rules Page Number: Line Number: Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2019-07-30 13:11 UTC Last Modified: 2019-08-05 14:23 UTC ====================================================================== Summary: incorrect resolution in http://austingroupbugs.net/view.php?id=839 ====================================================================== Relationships ID Summary ---------------------------------------------------------------------- related to 0001100 Rewrite of Section 2.10 Shell Grammar, ... child of 0000839 problems with reduction of WORD to ASSI... ======================================================================
---------------------------------------------------------------------- (0004508) stephane (reporter) - 2019-08-05 14:23 http://austingroupbugs.net/view.php?id=1276#c4508 ---------------------------------------------------------------------- We may also want to rename "cmd_name" to something else as it's potentially misleading. In cmd arg cmd is the WORD token identified as "cmd_name" In var=value < file cmd arg cmd is identified as "cmd_word". In those two examples, "cmd" is the "name of the command" being executed, but neither cmd_word nor cmd_name have to be the command's name like in $(echo cmd arg1) arg2 where the cmd_name is $(echo cmd arg1) but the command's name is "cmd" (assuming the default value of $IFS) or dryrun=; $dryrun cmd arg where cmd_name is $dryrun but the command name is "cmd". The distinction between cmd_name and cmd_word here is about the token having different constraints when it's preceded by redirections/assignments and not (namely whether keywords are allowed). Maybe "cmd_word_no_keyword" would be a better wording for "cmd_name". Issue History Date Modified Username Field Change ====================================================================== 2019-07-30 13:11 stephane New Issue 2019-07-30 13:11 stephane Name => Stephane Chazelas 2019-07-30 13:11 stephane Section => 2.10.2 shell grammar rules 2019-07-30 13:16 stephane Note Added: 0004501 2019-07-30 14:26 eblake Relationship added child of 0000839 2019-07-30 14:27 eblake Relationship added related to 0001100 2019-08-05 14:23 stephane Note Added: 0004508 ======================================================================