#15488: wrap text to terminal width --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: raimue@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.7.0 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by raimue@macports.org): Okay, I did a workaround in r37526. If no COLUMNS is in the environment (which happens when the input is not a tty), there is no line wrapping at all. I removed 80x24 as fallback, as this is not useful when using pipes. I don't know if there is a better way to fix it. Even if stdout is a tty, COLUMNS is not available in env and `stty size` only returns `stty: stdin isn't a terminal`. -- Ticket URL: <http://trac.macports.org/ticket/15488#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS