core.5: Change single quote to double quote in shell session example

The example section has a sample shell session containing:

But $PWD won't be expanded in single quotes. It should be double
quotes around the entire argument or some other form.

Reported-by: Roger Pate <roger@qxxy.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2010-11-15 07:19:26 +01:00
parent be78d88194
commit e9b7792542
1 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.TH CORE 5 2010-02-27 "Linux" "Linux Programmer's Manual"
.TH CORE 5 2010-11-15 "Linux" "Linux Programmer's Manual"
.SH NAME
core \- core dump file
.SH DESCRIPTION
@ -308,8 +308,8 @@ The following shell session demonstrates the use of this program
.RB "$" " cc \-o core_pattern_pipe_test core_pattern_pipe_test.c"
.RB "$" " su"
Password:
.RB "#" " echo \(aq|$PWD/core_pattern_pipe_test %p \
UID=%u GID=%g sig=%s\(aq > \e"
.RB "#" " echo \(dq|$PWD/core_pattern_pipe_test %p \
UID=%u GID=%g sig=%s\(dq > \e"
.B " /proc/sys/kernel/core_pattern"
.RB "#" " exit"
.RB "$" " sleep 100"