On 2/4/22 2:23 PM, Alex fxmbsw7 Ratchev wrote:

     > imho the example above should have resulted in error ')'
     > it would execute cat a b ) with hello till $( then rather \n and a b )
     > again, useless
     > especially the $( wasnt even quoted

    What can this possibly mean? What semantic interpretation would lead you
    to the conclusion that you should stop reading the token after a `$(' in
    this one specific case?


by flat non lexical text parsing, excepts for quotes but then $( logically expands, excepts: but imho the topic here is how far to expand shell stuff at this position, however factically its just needs to be a constant data separator

Well, you'd certainly have something here if your shell did that. It
wouldn't be a POSIX shell, though.


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to