From: akbarhome Date: 2007-02-11T08:50:16+09:00 Subject: Re: ENV['COLUMNS'] On Feb 10, 3:48 pm, pedro mg <_nospam_s...@tquadrado.com> wrote: > Hi, > > in irb I can have access to ENV['COLUMNS'] for the # of columns in the > shell, and works fine. > But inside a script (ruby script.rb), I can't have access to that hash > key and value. > I've done a: > Because when you play with irb, it is clear that you use terminal/ console so ENV['COLUMNS'] does matter. But when you execute ruby script, it is not clear whether this ruby script need terminal so ENV['COLUMNS'] does not matter.