bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: elusive failure in tests/stty/basic-1 on HP-UX


From: Bob Proulx
Subject: Re: elusive failure in tests/stty/basic-1 on HP-UX
Date: Fri, 30 Jun 2006 10:41:21 -0600
User-agent: Mutt/1.5.9i

Jim Meyering wrote:
> Bob Proulx wrote:
> > (However once sed is used I would probably go the entire way and do it
> > all with sed instead of the longer pipeline.  :-)
> 
> I suspect I wrote it that way because I *knew* tr ';' '\n'
> would do what I want (since we're guaranteed to be using the
> just-built GNU tr here), while I wasn't sure using sed to
> insert newlines would be portable enough.

I admit that I looked at sed very closely because in this case I was
using the HP-UX native sed and not GNU sed.  I was very suspicious
that might be an issue.  But the pattern and input line length was so
small that I could not believe that it was the problem.  So your
feeling there was good.

> Not impossible, just the result of stty thinking the console is
> very narrow.  You can reproduce the problem by running this:
> 
>   stty columns 1; stty -a; stty columns 80

Ah!  Now I see.  Yes, that looks like it.

> Thanks a lot for tracking that down.
> With all of your analysis, I think we can fix it now.
> I've made this change:

That works for me.  Thanks!
Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]