Commits

seydar committed 632b6a1 Draft

fixed piping. the issue was | was a private method. herp derp

  • Participants
  • Parent commits 9ce968e

Comments (0)

Files changed (3)

     but `... > 'test'` works. weird.
 *   ^C on running ruby programs kills the whole interpreter... womp.
 *   slashes in filenames
-*   `ll | wc` is broken again
 
 Questions:
 *   Why do you have to do @line = '' in Coolline in order to not affect the

File lib/chitin/commands/executable.rb

         # And it is important that they be closed, otherwise
         # we'll have a hanging pipe that will hold everything up.
   
-        p args
         exec path, *args
       end
   

File lib/chitin/commands/runnable.rb

     def bg?; @bg; end
     def fg?; !@bg; end
 
+    def |(other); Pipe.new self, other; end
+    alias_method :<=>, :|
+
     private
 
     attr_accessor :bg
       self[:out].close
       self[:err].close
     end
-  
-    def |(other); Pipe.new self, other; end
-    alias_method :<=>, :|
 
     # These methods need to be implemented by those including this module
     def returning; raise "Not Yet Implemented"; end
     def raw_run
       run
     end
-
   end
 end