mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-07-10 06:14:13 +01:00
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."
This commit is contained in:
parent
c349b4a2b3
commit
adba2dae8a
@ -208,6 +208,14 @@ cd build</userinput></screen>
|
|||||||
header using a command that is identical to what the GCC build system does
|
header using a command that is identical to what the GCC build system does
|
||||||
in normal circumstances:</para>
|
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 ..
|
<screen><userinput remap="install">cd ..
|
||||||
cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \
|
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>
|
`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/install-tools/include/limits.h</userinput></screen>
|
||||||
|
Loading…
Reference in New Issue
Block a user