ksh.1 states:

        Note: $(command) expressions are currently parsed by finding the 
matching
        parenthesis, regardless of quoting.  This should be fixed soon.

Seems like the "soon" mentioned here is already past.

        $ echo $(echo "closing: )")
        closing: )
        $

Ok? Am I missing something?

natano


Index: ksh.1
===================================================================
RCS file: /cvs/src/bin/ksh/ksh.1,v
retrieving revision 1.179
diff -u -p -r1.179 ksh.1
--- ksh.1       27 Apr 2016 12:46:23 -0000      1.179
+++ ksh.1       18 Aug 2016 07:56:10 -0000
@@ -1007,12 +1007,6 @@ has the same effect as
 .Ic $(cat foo) ,
 but it is carried out more efficiently because no process is started.
 .Pp
-.Sy Note :
-.Pf $( Ar command )
-expressions are currently parsed by finding the matching parenthesis,
-regardless of quoting.
-This should be fixed soon.
-.Pp
 Arithmetic substitutions are replaced by the value of the specified expression.
 For example, the command
 .Ic echo $((2+3*4))

Reply via email to