From: nobuyoshi nakada Date: 2005-08-09T12:18:13+09:00 Subject: Re: One line handies Hi, At Tue, 9 Aug 2005 09:01:45 +0900, David A. Black wrote in [ruby-talk:151306]: > I'm not sure I get why you'd need all this (YAML, the space trick, the > two cases). Does this: > > ruby -e 'puts ENV["PATH"].downcase.split(/[:;]/).sort' > > not work on all platforms? Or are there quote/escaping issues? No. /home/foo/BIN and /home/foo/bin are different directories on case-sensitive filesystems. ruby -e "puts ENV['PATH'].split(File::PATH_SEPARATOR).sort" -- Nobu Nakada