1
0
Эх сурвалжийг харах

Added a blurb about bash\'s new file expansion ability.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6858 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Archaic 20 жил өмнө
parent
commit
e860d2cfed

+ 7 - 1
chapter06/creatingdirs.xml

@@ -19,7 +19,7 @@ install -d /usr/{bin,include,lib,sbin,share,src}
 ln -s share/{man,doc,info} /usr
 ln -s share/{man,doc,info} /usr
 install -d /usr/share/{doc,info,locale,man}
 install -d /usr/share/{doc,info,locale,man}
 install -d /usr/share/{misc,terminfo,zoneinfo}
 install -d /usr/share/{misc,terminfo,zoneinfo}
-install -d /usr/share/man/man{1,2,3,4,5,6,7,8}
+install -d /usr/share/man/man{1..8}
 install -d /usr/local/{bin,etc,include,lib,sbin,share,src}
 install -d /usr/local/{bin,etc,include,lib,sbin,share,src}
 ln -s share/{man,doc,info} /usr/local
 ln -s share/{man,doc,info} /usr/local
 install -d /usr/local/share/{doc,info,locale,man}
 install -d /usr/local/share/{doc,info,locale,man}
@@ -46,6 +46,12 @@ another user's files from them. The latter is prohibited by the
 so-called <quote>sticky bit,</quote> the highest bit (1) in the 1777
 so-called <quote>sticky bit,</quote> the highest bit (1) in the 1777
 bit mask.</para>
 bit mask.</para>
 
 
+<note><para>Notice the two different constructions above for creating multiple
+man directories: <command>install -d /usr/share/man/man{1..8}</command> and
+<command>install -d /usr/local/share/man/man{1,2,3,4,5,6,7,8}</command>. The
+first one is new since Bash 3.0 This new feature will help make repetitive
+commands easier to type.</para></note>
+
 <sect2>
 <sect2>
 <title>FHS Compliance Note</title>
 <title>FHS Compliance Note</title>