From: Marc Heiler Date: 2007-10-24T05:51:36+09:00 Subject: Re: bash to ruby "So, is there any guideline on how to port bash scripts to ruby?" Well the basic functionality of mkdir or cd is all there in std ruby. Do you have a specific problem? Just post away here, I am sure people like to squish away with the ugliness of shell scripts (did you guys know that libtool has ~7500 lines of shell code? ... it has some genious macros... #ifndef DIR_SEPARATOR_2 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) if eval test -z \"\${$var+set}\"; then relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" must be fun to maintain this ;> ) -- Posted via http://www.ruby-forum.com/.