[glib: 1/2] compiling.xml: Don't recommend backticks
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] compiling.xml: Don't recommend backticks
- Date: Wed, 9 Jun 2021 10:13:28 +0000 (UTC)
commit 47e161d082ff194f95be1aa625e984a62ec97da6
Author: Utkarsh Singh <utkarsh190601 gmail com>
Date: Wed Jun 9 10:13:27 2021 +0000
compiling.xml: Don't recommend backticks
docs/reference/glib/compiling.xml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/docs/reference/glib/compiling.xml b/docs/reference/glib/compiling.xml
index 02971a60f..c7a058c5f 100644
--- a/docs/reference/glib/compiling.xml
+++ b/docs/reference/glib/compiling.xml
@@ -60,13 +60,13 @@ The difference between the two is that gmodule-2.0 adds
which is often not needed.
</para>
<para>
-The simplest way to compile a program is to use the "backticks"
-feature of the shell. If you enclose a command in backticks
-(<emphasis>not single quotes</emphasis>), then its output will
-be substituted into the command line before execution. So to
-compile a GLib Hello, World, you would type the following:
+The simplest way to compile a program is to use command substitution
+feature of a shell. A command written in the format
+<literal>$(command)</literal> gets substituted into the command line
+before execution. So to compile a GLib Hello, World, you would type
+the following:
<programlisting>
-$ cc hello.c `pkg-config --cflags --libs glib-2.0` -o hello
+$ cc hello.c $(pkg-config --cflags --libs glib-2.0) -o hello
</programlisting>
</para>
<note><para>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]