https://bz.apache.org/bugzilla/show_bug.cgi?id=60562
--- Comment #20 from [email protected] --- The behavior error in the snippet leading to truncation is that Posix has subshells trim output returned to an assignment statement. Probably so that one can use things like echo to set variables more conveniently. The value returned by the subshell expression (`...`) therefore needs non-whitespace padding on its output. Using something like: `printf 'X%sX\n' "${arg}"...` and then stripping the padding X in the main shell should resolve that quirk esc_arg="${esc_arg#X}" esc_arg="${esc_arg%X}" But I can't test this and can't see how it is different (by spec) than the original 1.10 solution unless the core of the problem is $() vs `` for invoking subshells. -- You are receiving this mail because: You are the assignee for the bug.
