problem with 'script' when standard input is closed
Denys Vlasenko
vda.linux at googlemail.com
Sun Mar 16 11:36:39 UTC 2014
On Friday 14 March 2014 16:39, Pavel Raiskup wrote:
> Hey guys,
>
> I spotted some problems with 'script' implementation in busybox. The
> difference between this and 'util-linux' script implementation:
>
> [util-linux]~$ script -q -c "echo hey" /dev/null 0>&-
> hey
> [busybox]~$ busybox script -q -c "echo hey" /dev/null 0>&-
> script: can't find free pty
>
> I hope that busybox should continue to work even if the standard input is
> closed. Thanks for any comment,
Fixed in git.
But you are better use </dev/null in such cases.
Many more programs are buggy in this way.
More information about the busybox
mailing list