Commits

seydar committed 9ce968e Draft

what i got

  • Participants
  • Parent commits a27c63a

Comments (0)

Files changed (3)

     -> important for removing passwords if accidentally typed
 *   improve library usage of executables
 *   interprocess communication
-    -> dafuq does this even mean, why did i write it?
+    -> sharing of variables between chitin processes
 
 QUIRKS:
 *   menu doesn't erase itself sometimes
     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/builtins.rb

       def gem(*a); raw_exec("gem", *a); end
       def all; D('.'); end
 
-      def num; L {|i| i.to_i }; end
+      def to_num; L {|i| i.to_i }; end
     end
     include Aliases
     

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
   
     end
 
     def to_s
-      arr = args.map do |arg|
-        if arg.is_a? Hash
-          arg.map do |k, v|
-            if k.is_a? Symbol
-              ["#{k.to_s.size > 1 ? '--' : '-'}#{k}", v.to_s]
-            else
-              [k.to_s, v.to_s]
-            end
-          end
-        else
-          arg.to_s
-        end
-      end
+      arr = process_args(args)
   
       [path, *arr.flatten].join ' '
     end