question about case command in lfs6.6 chap5.4

Chris Staub chris at beaker67.com
Tue Mar 9 11:21:18 PST 2010


On 03/09/2010 07:08 AM, stosss wrote:
> Linux From Scratch - Version 6.6
> Chapter 5. Constructing a Temporary System
>
> 5.4. Binutils-2.20 - Pass 1
>
> 5.4.1. Installation of Cross Binutils
>
> case $(uname -m) in
>    x86_64) mkdir -v /tools/lib&&  ln -sv lib /tools/lib64 ;;
> esac
>
> Is the command above correct? There is only one ( but there are two ) .

This is how case works. You do "case [variable] in condition) command ;; 
condition2) command ;;... esac

Type "help case".



More information about the lfs-support mailing list