diff --git a/chapter06/creatingdirs.xml b/chapter06/creatingdirs.xml index 8dbb3b0c7..0b09a7103 100644 --- a/chapter06/creatingdirs.xml +++ b/chapter06/creatingdirs.xml @@ -19,7 +19,7 @@ install -d /usr/{bin,include,lib,sbin,share,src} ln -s share/{man,doc,info} /usr install -d /usr/share/{doc,info,locale,man} 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} ln -s share/{man,doc,info} /usr/local 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 sticky bit, the highest bit (1) in the 1777 bit mask. +Notice the two different constructions above for creating multiple +man directories: install -d /usr/share/man/man{1..8} and +install -d /usr/local/share/man/man{1,2,3,4,5,6,7,8}. The +first one is new since Bash 3.0 This new feature will help make repetitive +commands easier to type. + FHS Compliance Note