From adba2dae8ac7f4a287b6cff32224e8cb6c7c7134 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 26 Jan 2023 10:40:42 -0600 Subject: 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." --- chapter05/gcc-pass1.xml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chapter05/gcc-pass1.xml') 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 header using a command that is identical to what the GCC build system does in normal circumstances: + + 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. + + cd .. cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \ `dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/install-tools/include/limits.h -- cgit v1.2.3-54-g00ecf