From: Sean Chittenden Date: 2002-07-07T14:32:55+09:00 Subject: Re: unshifting a directory onto ENV['PATH'] Uh oh, looks like we're going for a round of 9 holes this week: > Is there a more elegant (compact?) method than > > ENV['PATH'].split(':').unshift('mystuff').join(':') > > or > > ENV['PATH'] = 'mystuff:' + ENV['PATH'] > > for prepending something to ENV['PATH']? I think your best bet is: ENV['PATH'] = 'mystuff:' << ENV['PATH'] -sc -- Sean Chittenden