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/sh
Johnothan King 1d9093e603
Add support for process substitutions to the deparser (#288)
Like tdump() and trestore() before commit 32d1abb1, sh_deparse() fails
to handle process substitutions correctly. This limitation of the shell
deparser is rather minor since it's unused. However, seeing as the
deparser was left in the code base intentionally it should at least
function properly.

src/cmd/ksh93/sh/deparse.c:
- Add a PROCSUBST flag for handling process substitutions in
  sh_deparse().
- If we're handling a process substitution, add an ending ')'
  without an extra newline.
- Avoid adding an extra ' &' to commands inside of a process
  substitution. An extra ' &' is only added if the FAMP and FINT
  flags are set, which indicates the command was spawned as a separate
  job with '&'.
- Add process substitution handling to 'p_redirect' by calling p_tree()
  when encountering a process substitution.
2021-04-26 00:12:29 +01:00
..
args.c Fix handling of '--posix' and '--default' (#265) 2021-04-09 23:26:07 +01:00
arith.c Introduce usage of __builtin_unreachable() and noreturn (#248) 2021-04-05 00:28:24 +01:00
array.c Fix more compiler warnings, typos and other minor issues (#260) 2021-04-08 19:58:07 +01:00
defs.c Fix more compiler warnings, typos and other minor issues (#260) 2021-04-08 19:58:07 +01:00
deparse.c Add support for process substitutions to the deparser (#288) 2021-04-26 00:12:29 +01:00
expand.c Add --globcasedetect shell option for globbing and completion 2021-03-22 18:45:19 +00:00
fault.c Fix more compiler warnings, typos and other minor issues (#260) 2021-04-08 19:58:07 +01:00
fcin.c Fix many GCC -Wimplicit-fallthrough warnings (#243) 2021-03-30 21:49:20 +01:00
init.c Fix 'unset -f' to work in subshells without forking (re: 047cb330) 2021-04-24 06:57:49 +01:00
io.c Fix buffer overflows and memory leaks caught by ASAN (#282) 2021-04-22 18:13:12 +01:00
jobs.c Fix more compiler warnings, typos and other minor issues (#260) 2021-04-08 19:58:07 +01:00
lex.c Fix ksh exit on syntax error in profile (re: cb67a01b, ceb77b13) 2021-04-21 19:42:24 +01:00
macro.c Fix more compiler warnings, typos and other minor issues (#260) 2021-04-08 19:58:07 +01:00
main.c Lots of man page fixes and some other minor fixes (#284) 2021-04-23 22:02:30 +01:00
name.c Fix buffer overflows and memory leaks caught by ASAN (#282) 2021-04-22 18:13:12 +01:00
nvdisc.c nv_disc(NV_LAST) loses trailing shell context from discipline stack (#276) 2021-04-15 14:41:32 +01:00
nvtree.c Fix buffer overflows and memory leaks caught by ASAN (#282) 2021-04-22 18:13:12 +01:00
nvtype.c Fix more compiler warnings, typos and other minor issues (#260) 2021-04-08 19:58:07 +01:00
parse.c Allow invoking path-bound built-in commands by direct path or preceding PATH assignment (#275) 2021-04-15 04:08:12 +01:00
path.c Lots of man page fixes and some other minor fixes (#284) 2021-04-23 22:02:30 +01:00
pmain.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
shcomp.c Introduce usage of __builtin_unreachable() and noreturn (#248) 2021-04-05 00:28:24 +01:00
streval.c Reset arithmetic recursion level on all errors (re: 264ba48b) 2021-04-11 01:25:19 +01:00
string.c Fix more compiler warnings, typos and other minor issues (#260) 2021-04-08 19:58:07 +01:00
subshell.c Fix 'unset -f' to work in subshells without forking (re: 047cb330) 2021-04-24 06:57:49 +01:00
suid_exec.c Fix more compiler warnings, typos and other minor issues (#260) 2021-04-08 19:58:07 +01:00
tdump.c shcomp: fix redirection with process substitution 2021-04-22 03:25:24 +01:00
timers.c Introduce usage of __builtin_unreachable() and noreturn (#248) 2021-04-05 00:28:24 +01:00
trestore.c shcomp: fix redirection with process substitution 2021-04-22 03:25:24 +01:00
waitevent.c Version: 2012-08-01-master 2016-01-11 15:54:23 -05:00
xec.c Further fix '<>;' and fix crash on 32-bit systems (re: 6701bb30) 2021-04-17 21:56:39 +01:00