LINUX.ORG.RU

История изменений

Исправление invokercd, (текущая версия) :

То что я выложил в заголовке темы - это с livecd (это в принципе видно по PS).

У меня цветов нет, точно как fdisk colors? (комментарий)

Самое интересное, я скопировал с livecd бинарник fdisk, и проверив у себя увидел цветной вывод, точно такой же как и на livecd.

Еще заметил что у них разный вывод help, там где есть цветной вывод:

[root@heaven /tmp/tmp.4nE2L0PaB8 ] ./fdisk -v; ./fdisk -help
fdisk from util-linux 2.24.1

Usage:
 fdisk [options] <disk>      change partition table
 fdisk [options] -l [<disk>] list partition table(s)

Options:
 -b <size>         sector size (512, 1024, 2048 or 4096)
 -c[=<mode>]       compatible mode: 'dos' or 'nondos' (default)
 -h                print this help text
 -c[=<mode>]       compatible mode: 'dos' or 'nondos' (default)
 -L[=<when>]       colorize output (auto, always or never)
 -t <type>         force fdisk to recognize specified partition table type only
 -u[=<unit>]       display units: 'cylinders' or 'sectors' (default)
 -v                print program version
 -C <number>       specify the number of cylinders
 -H <number>       specify the number of heads
 -S <number>       specify the number of sectors per track

For more details see fdisk(8).
И тот что установлен, и без цветного вывода:
[root@heaven /tmp/tmp.4nE2L0PaB8 ] fdisk -v; fdisk -help 
fdisk from util-linux 2.25.1

Usage:
 fdisk [options] <disk>      change partition table
 fdisk [options] -l [<disk>] list partition table(s)

Options:
 -b, --sector-size <size>      physical and logical sector size
 -c, --compatibility[=<mode>]  mode is 'dos' or 'nondos' (default)
 -L, --color[=<when>]          colorize output (auto, always or never)
 -l, --list                    display partitions end exit
 -t, --type <type>             recognize specified partition table type only
 -u, --units[=<unit>]          display units: 'cylinders' or 'sectors' (default)
 -s, --getsz                   display device size in 512-byte sectors [DEPRECATED]

 -C, --cylinders <number>      specify the number of cylinders
 -H, --heads <number>          specify the number of heads
 -S, --sectors <number>        specify the number of sectors per track

 -h, --help     display this help and exit
 -V, --version  output version information and exit

For more details see fdisk(8).
Если кто-то хочет протестить, вот ссылка на fdisk из livecd (md5:23768002836ad6acaff0b8e0cb37ecd5)

Исходная версия invokercd, :

То что я выложил в заголовке темы - это с livecd (это в принципе видно по PS).

У меня цветов нет, точно как fdisk colors? (комментарий)

Самое интересное, я скопировал с livecd бинарник fdisk, и проверив у себя увидел цветной вывод, точно такой же как и на livecd.

Еще заметил что у них разный вывод help, там где есть цветной вывод:

[root@heaven /tmp/tmp.4nE2L0PaB8 ] ./fdisk -v; ./fdisk -help
fdisk from util-linux 2.24.1

Usage:
 fdisk [options] <disk>      change partition table
 fdisk [options] -l [<disk>] list partition table(s)

Options:
 -b <size>         sector size (512, 1024, 2048 or 4096)
 -c[=<mode>]       compatible mode: 'dos' or 'nondos' (default)
 -h                print this help text
 -c[=<mode>]       compatible mode: 'dos' or 'nondos' (default)
 -L[=<when>]       colorize output (auto, always or never)
 -t <type>         force fdisk to recognize specified partition table type only
 -u[=<unit>]       display units: 'cylinders' or 'sectors' (default)
 -v                print program version
 -C <number>       specify the number of cylinders
 -H <number>       specify the number of heads
 -S <number>       specify the number of sectors per track

For more details see fdisk(8).
И тот что установлен, и без цветного вывода:
[root@heaven /tmp/tmp.4nE2L0PaB8 ] fdisk -v; fdisk -help 
fdisk from util-linux 2.25.1

Usage:
 fdisk [options] <disk>      change partition table
 fdisk [options] -l [<disk>] list partition table(s)

Options:
 -b, --sector-size <size>      physical and logical sector size
 -c, --compatibility[=<mode>]  mode is 'dos' or 'nondos' (default)
 -L, --color[=<when>]          colorize output (auto, always or never)
 -l, --list                    display partitions end exit
 -t, --type <type>             recognize specified partition table type only
 -u, --units[=<unit>]          display units: 'cylinders' or 'sectors' (default)
 -s, --getsz                   display device size in 512-byte sectors [DEPRECATED]

 -C, --cylinders <number>      specify the number of cylinders
 -H, --heads <number>          specify the number of heads
 -S, --sectors <number>        specify the number of sectors per track

 -h, --help     display this help and exit
 -V, --version  output version information and exit

For more details see fdisk(8).