RE: [ILUG] A little grep mystery

From: Breathnach, Proinnsias (Dublin) (breatpro at domain exchange.ie.ml.com)
Date: Tue 04 Jun 2002 - 11:20:08 IST


Um, Padraig ....
tty generally has a term-width variable which ps can use, so chopping to 80
may not be sensible ... on the other hand, many utils (esp on older systems)
had a STDIN width of what was then tty standard 80 cols, which is where the
limitation began.

I'd imagine _most_ utils nowadays can take more than 80 cols on STDIN /
piped input, but not all, so it only makes sense to retain the limitation
until such time as the utils are upgraded.

P

> -----Original Message-----
> > and then I remembered this being discussed here recently - ps
> > 'intelligently' cutting its output at column 80 if STDOUT is not a tty.
>
> Hmm, it's a questionable thing to do anyway, but shouldn't the logic
> be the other way around? I.E. chop at domain 80 if stdout is a tty?
>
> Padraig.
>



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:04 GMT