5 dir
=$1 filename
=$2 target
=$3
6 echo "--slave $dir/$filename $filename $dir/$target"
9 update-alternatives
--install /usr
/bin
/lzma lzma
/usr
/bin
/xz
20 $
(
10 slave
/usr
/share
/man
/man1 lzma
.1.gz xz
.1.gz
11 slave
/usr
/bin unlzma unxz
12 slave
/usr
/share
/man
/man1 unlzma
.1.gz unxz
.1.gz
13 for util
in cat more less diff cmp grep egrep fgrep
15 slave
/usr
/bin lz
$util xz
$util
16 slave
/usr
/share
/man
/man1 lz
$util.1.gz xz
$util.1.gz