Control: tags -1 + moreinfo

Hi Dan,

On Sat, Jan 30, 2016 at 02:19:06PM +0800, 積丹尼 Dan Jacobson wrote:
> Package: sysv-rc-conf
> Version: 0.99-7
> Severity: wishlist
> File: /usr/sbin/sysv-rc-conf
> 
> sysv-rc-conf -P shouldn't need to know Terminal Size.

I assume you mean to add another option in this example to make it
non-interactive? I used '--list'.

> One might want to use it in batch jobs.
> 
> Unable to get Terminal Size. The TIOCGWINSZ ioctl didn't work. The COLUMNS 
> and LINES environment variables didn't work. The resize program didn't work. 
> The stty program didn't work. at 
> /usr/lib/i386-linux-gnu/perl5/5.20/Term/ReadKey.pm line 451.
> Use of uninitialized value in subroutine entry at 
> /usr/share/perl5/Curses/UI.pm line 314.
> Use of uninitialized value in subroutine entry at 
> /usr/share/perl5/Curses/UI.pm line 314.
> Use of uninitialized value in numeric ne (!=) at 
> /usr/share/perl5/Curses/UI.pm line 404.

I cannot reproduce this failure. I see no errors without a terminal,
using:

  true | (setsid sysv-rc-conf -P --list) 2>&1 | cat

Perhaps more recent versions of the relevant Perl libraries do not
suffer from this problem?

Were these errors just noise or did they prevent correct operation?

Thanks,

Andrew

Reply via email to