linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] core.5: explain the new situation with argument splitting
       [not found] <20190807014525.24825-1-pabs3@bonedaddy.net>
@ 2019-09-13 13:02 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; only message in thread
From: Michael Kerrisk (man-pages) @ 2019-09-13 13:02 UTC (permalink / raw)
  To: Paul Wise; +Cc: mtk.manpages, linux-man

Hello Paul,

On 8/7/19 3:45 AM, Paul Wise wrote:
> It changed in Linux v5.3-rc3 commit 315c69261dd3 from
> splitting after template expansion to splitting beforehand.

Thanks. Patch applied.

Cheers,

Michael

> ---
>  man5/core.5 | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/man5/core.5 b/man5/core.5
> index d3efca3f8..ddc0352b8 100644
> --- a/man5/core.5
> +++ b/man5/core.5
> @@ -267,6 +267,20 @@ file.
>  If the first character of this file is a pipe symbol (\fB|\fP),
>  then the remainder of the line is interpreted as the command-line for
>  a user-space program (or script) that is to be executed.
> +.PP
> +.\" 315c69261dd3fa12dbc830d4fa00d1fad98d3b03
> +Since kernel 5.3.0, the pipe template is split on spaces into an
> +argument list before the template parameters are expanded.
> +In earlier kernels the template parameters are expanded first and
> +the resulting string is split on spaces into an argument list.
> +This means that in earlier kernels executable names added by the
> +%e and %E template parameters could get split into multiple arguments.
> +So the core dump handler needs to put the executable names as the last
> +argument and ensure it joins all parts of the executable name using spaces.
> +Executable names with multiple spaces in them are not correctly represented
> +in earlier kernels so the core dump handler needs to use mechanisms to find
> +the executable name.
> +.PP
>  Instead of being written to a disk file, the core dump is given as
>  standard input to the program.
>  Note the following points:
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-13 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20190807014525.24825-1-pabs3@bonedaddy.net>
2019-09-13 13:02 ` [PATCH] core.5: explain the new situation with argument splitting Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).