class

Shell::AppendIO

v1_8_7_72 - Show latest stable - Superclass: BuiltInCommand

class Sort < Cat

  def initialize(sh, *filenames)
    super
  end

  def each(rs = nil)
    ary = []
    super{|l|       ary.push l}
    for l in ary.sort!
    yield l
    end
  end

end

Files

  • lib/shell/builtin-command.rb