Summary: | COLUMNS are not detected | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | imz <vanyaz> |
Component: | initscripts | Assignee: | Dmitry V. Levin <ldv> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | minor | ||
Priority: | P4 | ||
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
imz
2002-07-17 16:14:01 MSD
Any ideas how to fix that properly? Any ideas how to fix that properly? I can think of two ways: 1. invoke shell like \'/bin/sh -i\' to make it look after COLUMNS (since it doesn\'t require libtinfo, I guess, it uses some ioctl to determine the width); 2. use termutils (see #1076; I call so the simple wrappers around libtinfo) like it is done in /user/imz/RPM/SOURCES/distribute-0.3.91/usr/lib/distribute/functions But then an extra-dependency on tibtinfo is added for initscripts, I don\'t think this is the proper way. I can think of two ways: 1. invoke shell like \'/bin/sh -i\' to make it look after COLUMNS (since it doesn\'t require libtinfo, I guess, it uses some ioctl to determine the width); 2. use termutils (see #1076; I call so the simple wrappers around libtinfo) like it is done in /user/imz/RPM/SOURCES/distribute-0.3.91/usr/lib/distribute/functions But then an extra-dependency on tibtinfo is added for initscripts, I don\'t think this is the proper way. To use termutils, I\'ll have to move tput from /usr/bin/ to /bin/; yes, tput is more portable... To use termutils, I\'ll have to move tput from /usr/bin/ to /bin/; yes, tput is more portable... BTW, /bin/ls is already linked with -ltinfo, so I see no problem adding dependence on termutils to initscripts. Well, I\'ve relocated tput to /bin/. BTW, /bin/ls is already linked with -ltinfo, so I see no problem adding dependence on termutils to initscripts. Well, I\'ve relocated tput to /bin/. Implemented in initscripts-5.49-ipl46mdk, based on distribute-0.4.0/usr/lib/distribute/functions Implemented in initscripts-5.49-ipl46mdk, based on distribute-0.4.0/usr/lib/distribute/functions This fix appeared to be incomplete: it doesn\'t work with cases like this: action \"test\" true 2>/dev/null This fix appeared to be incomplete: it doesn\'t work with cases like this: action \"test\" true 2>/dev/null Fixed in initscripts-5.49-ipl47mdk + sh-2.05b-alt4 Fixed in initscripts-5.49-ipl47mdk + sh-2.05b-alt4 |