On Sunday 27 April 2008 16:19, Michael D. Setzer II wrote:
> > > >         /* Another popular pager, most, detects when stdout
> > > >          * is not a tty and turns into cat. This makes sense. */
> > > >         if (!isatty(STDOUT_FILENO))
> > > >                 return bb_cat(argv);
> > > >
> > > > This is needed to make e.g. "man <cmd> | sed ... >file"
> > > > work (man internally starts more, or another $PAGER).
> > > >
> > >
> > > cat scriptfile | more
> > > dmesg | more
> > >
> > > Using the same thing within a Fedora machine works fine with the more
> > > lines.
> >
> > Works for me. Look at the above code. It says "isatty(STDOUT_FILENO)".
> > It checks *stdout*, not stdin. In your example, stdout is
> > (presumed to be) a tty, so it has to work.
> >
> 
> It does work fine when using it on a Fedora system with busybox, but
> doesn't work when booted from the kernel.org kernel and using the /dev/tty1,
> but then same thing happens when I copy the Fedora8 more command to
> the cd. I just don't know why?

Me neither. Let's find out. Run:

cat scriptfile | strace -o strace.log more

and post strace.log to the mailing list.
--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to