1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00
cde/src/cmd/ksh93/include
atheik 40a5c45b48 Allow double quotes within backtick comsub within double quotes
The following reproducer causes a spurious syntax error:

    foo="`: "("`"

The nested double quotes are not recognised correctly, causing a
syntax error at the '('. Removing the outer double quotes (which
are unnecessary) is a workaround, but it's still a bug as every
other shell accepts this. This bug has been present since the
original Bourne shell.

src/cmd/ksh93/sh/lex.c: sh_lex(): case S_QUOTE:
- If the current character is '"' and we're in a `...` command
  substitution (ingrave is true), then do not switch to the old
  mode but keep using the ST_QUOTE state table.

Thanks to @JohnoKing for the report and to @atheik for the fix.

Co-authored by: Martijn Dekker <martijn@inlv.org>
Resolves: https://github.com/ksh93/ksh/issues/352
2022-05-20 22:48:47 +01:00
..
argnod.h Fix the output of typeset -p for two dimensional indexed arrays (#454) 2022-02-10 21:01:40 +00:00
builtins.h Update copyright years in files changed since 1st Jan 2022 2022-01-30 20:49:04 +00:00
defs.h posix mode: disable effect of repeating whitespace char in $IFS 2022-03-11 21:22:22 +01:00
edit.h Update copyright years in files changed since 1st Jan 2022 2022-01-30 20:49:04 +00:00
fault.h Update copyright years in files changed since 1st Jan 2022 2022-01-30 20:49:04 +00:00
fcin.h INIT: remove proto, ratz (re: 46593a89, 6137b99a); major cleanup 2021-12-24 07:05:22 +00:00
history.h Update copyright years in files changed since 1st Jan 2022 2022-01-30 20:49:04 +00:00
io.h Accumulated fixes for minor issues (#442) 2022-01-30 20:42:59 +00:00
jobs.h trap: fix use after free (#446) 2022-02-05 13:53:11 +00:00
lexstates.h INIT: remove proto, ratz (re: 46593a89, 6137b99a); major cleanup 2021-12-24 07:05:22 +00:00
name.h Fix multiple bugs when using 'alias -p' to print aliases (#398) 2021-12-27 03:49:06 +00:00
national.h INIT: remove proto, ratz (re: 46593a89, 6137b99a); major cleanup 2021-12-24 07:05:22 +00:00
nval.h Yet more misc. cleanups; rm SHOPT_PFSH, SHOPT_TYPEDEF 2022-02-10 21:04:56 +00:00
path.h Yet more misc. cleanups; rm SHOPT_PFSH, SHOPT_TYPEDEF 2022-02-10 21:04:56 +00:00
regress.h Update copyright years in files changed since 1st Jan 2022 2022-01-30 20:49:04 +00:00
shell.h Improve and document fast filescan loops (SHOPT_FILESCAN) 2022-02-17 19:43:36 +00:00
shlex.h Fix the output of typeset -p for two dimensional indexed arrays (#454) 2022-02-10 21:01:40 +00:00
shnodes.h Update copyright years in files changed since 1st Jan 2022 2022-01-30 20:49:04 +00:00
shtable.h Update copyright years in files changed since 1st Jan 2022 2022-01-30 20:49:04 +00:00
streval.h Update copyright years in files changed since 1st Jan 2022 2022-01-30 20:49:04 +00:00
terminal.h Update copyright years in files changed since 1st Jan 2022 2022-01-30 20:49:04 +00:00
test.h Update copyright years in files changed since 1st Jan 2022 2022-01-30 20:49:04 +00:00
timeout.h Add ksh 93u+m contributors notice to 964 copyright headers 2021-04-26 00:19:31 +01:00
ulimit.h Accumulated fixes for minor issues (#442) 2022-01-30 20:42:59 +00:00
variables.h Update copyright years in files changed since 1st Jan 2022 2022-01-30 20:49:04 +00:00
version.h Allow double quotes within backtick comsub within double quotes 2022-05-20 22:48:47 +01:00