irb actually preserves ENV['COLUMNS']. If you try running that same
command from within a proper ruby script, though, you'll find it
returning nil.
- Jamis
On Jan 12, 2007, at 7:09 PM, Wayne E. Seguin wrote:
This may be too simplistic but couldn't you simply get the value
from a
The fact that you have to remember to explicitly export the COLUMNS
variable discourages me from adding support for it to the code. For
now (and especially since your patch) hard-coding it to 80 is
sufficient, I think.
- Jamis
On Jan 12, 2007, at 10:43 AM, NeilW wrote:
Works here:
By
Nice, Neil! You're on a roll. That's a good workaround, I'll get that
in.
- Jamis
On Jan 12, 2007, at 12:05 PM, NeilW wrote:
As noted on a previous thread, update code has a timezone problem. You
take UTC from the command station, but unfortunately 'touch' uses
local
time by default.