Re: [dev] [sbase] [PATCH] ls fallback if ioctl does not work

From: Dimitris Papastamos <sin_AT_2f30.org>
Date: Sun, 15 Feb 2015 18:38:59 +0000

On Sun, Feb 15, 2015 at 07:35:51PM +0100, k0ga_AT_shike2.com wrote:
>
> > The ioctl() can be assumed to be present on all systems, but in case
> > TIOCGWINSZ doesn't exist, we fall back to the fixed value. This is the
> > best of both worlds.
> >
>
> I like your solution, but I think COLUMNS should have a bigger
> priority, because in this case user can define a different value of
> the current width.

Yes, we should fallback to a fixed value only after trying COLUMNS.
Received on Sun Feb 15 2015 - 19:38:59 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 15 2015 - 19:48:07 CET