Would any mad enough rubyists start the equivalent of http://ppt.perl.org/? For the impatient, “perl power tools: unix
reconstruction project” is an on-going attempt at writing (most of) the
BSD command set in Perl.
Not quite as mad as BASIC in TeX, but potentially useful indeed.
then you probably don’t have any files named ‘a.rb’ under the current
directory - i seem to have several hundred
Or abrb, or acrb, or airbag, or…
indeed. or diectories. that’s the nice thing about using select:
ruby -e’ puts Dir[“/”].select{|e| test ?f, e and e =~ /^a.rb$/} ’
I was just obliquely pointing out the lack of ^ and . and $ But
it’s true that Dir.[] is not very seletcive… In fact, I think I
once submitted an RCR to let it take a second argument that would be
tested for (like: Dir[“/”],?f]) but it was rejected. So here I am
several years later still acting as if Dir.[] could read my mind…