aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/gcc-pass1.xml
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2023-01-26 10:40:42 -0600
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2023-01-26 10:40:42 -0600
commitadba2dae8ac7f4a287b6cff32224e8cb6c7c7134 (patch)
tree1c0f2a54c765d049dfccd05df3ac32b611773eb7 /chapter05/gcc-pass1.xml
parentc349b4a2b33dfe085b7f7733c5e70e8ed5f4f23d (diff)
Add a comment about nested command substitution
"The command below shows an example of nested command substitution using two methods: backquotes and a $() construct. It could be rewritten using the same method for both substitutions, but is shown this way to demonstrate how they can be mixed. Generally the $() method is preferred."
Diffstat (limited to 'chapter05/gcc-pass1.xml')
-rw-r--r--chapter05/gcc-pass1.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml
index 7a431ec90..e0d503f8d 100644
--- a/chapter05/gcc-pass1.xml
+++ b/chapter05/gcc-pass1.xml
@@ -208,6 +208,14 @@ cd build</userinput></screen>
header using a command that is identical to what the GCC build system does
in normal circumstances:</para>
+ <note>
+ <para>The command below shows an example of nested command substitution
+ using two methods: backquotes and a $() construct. It could be rewritten
+ using the same method for both substitutions, but is shown this way
+ to demonstrate how they can be mixed. Generally the $() method is
+ preferred.</para>
+ </note>
+
<screen><userinput remap="install">cd ..
cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \
`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/install-tools/include/limits.h</userinput></screen>