From e860d2cfedccd0cffedb36295a46338cc5bba078 Mon Sep 17 00:00:00 2001 From: Archaic Date: Fri, 16 Sep 2005 02:38:06 +0000 Subject: 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 --- chapter06/creatingdirs.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'chapter06') 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 -- cgit v1.2.3-54-g00ecf