From: Bill Kelly Date: 2005-08-09T09:27:23+09:00 Subject: Re: One line handies From: "David A. Black" > Does this: > > ruby -e 'puts ENV["PATH"].downcase.split(/[:;]/).sort' > > not work on all platforms? Or are there quote/escaping issues? DOS (cmd.exe) will need the double- and single-quotes swapped: ruby -e "puts ENV['PATH'].downcase.split(/[:;]/).sort" But... the colon will cause probs, because of windoze paths like C:\blah\blah ... Regards, Bill