From: pedro mg <_nospam_seti@...> Date: 2007-02-11T18:15:08+09:00 Subject: Re: ENV['COLUMNS'] Brian Candler wrote: >> I think that the problem has to do with how script.rb is being invoked. >> Is it started from something other than a terminal session? ... perhaps >> via a cron job or a startup daemon? If so, then LINES and COLUMNS would >> not normally be set, since those environment variables are usually >> initialized and exported only within an interactive shell. > > I thought of that, but all the examples shown above and in my previous reply > were typed into a terminal session. yes Brian, me too. I'm running the script in a terminal shell. -- pedro mg ruby 1.8.4 (2005-12-24) [i486-linux] ubuntu linux edgy-eft 2.6.17-10-386 #2