NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/26493 CVS commit: src/bin/ksh

The following reply was made to PR bin/26493; it has been noted by GNATS.

From: Alan Barrett <>
Subject: PR/26493 CVS commit: src/bin/ksh
Date: Mon, 27 Oct 2008 19:52:28 +0000 (UTC)

 Module Name:   src
 Committed By:  apb
 Date:          Mon Oct 27 19:52:28 UTC 2008
 Modified Files:
        src/bin/ksh: ksh.Man lex.c
 Log Message:
 In foo="`echo \"hi\"`", the backslashes should be removed by the outer
 double quotes, not seen by the inner backquotes.  Previously, ksh(1)
 handled this correctly in non-posix mode but incorrectly in posix mode.
 The previous comments in src/bin/ksh/lex.c quote parts of some version
 of the POSIX specification.  The version of POSIX being quoted is not
 identified, but the wording is very similar to that in SUSv3
 It seems clear that the words "having escape characters removed"
 mean, in that context, that the backslash before the double quote in
 "...`...\"...`..." is removed as part of the handling of the outer
 double quotes, so that the backslash is not present when the inner
 backquotes are handled.  The new code in this commit follows this
 interpretation.  The previous code followed a different interpretation
 which is now believed to be incorrect.
 Discussed in tech-userlevel.  Closes PR 26493.
 To generate a diff of this commit:
 cvs rdiff -r1.20 -r1.21 src/bin/ksh/ksh.Man
 cvs rdiff -r1.12 -r1.13 src/bin/ksh/lex.c
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index