bin/srrepl in shen-ruby-0.3.1 vs bin/srrepl in shen-ruby-0.4.0
- old
+ new
@@ -21,11 +21,11 @@
# handler to interrupt the current execution.
class ReplInterrupt < StandardError; end
Signal.trap("INT") { raise ReplInterrupt }
# Launch the REPL
-command = :"shen-shen"
+command = :"shen.shen"
begin
shen.__eval(Kl::Cons.list([command]))
rescue StandardError => e
# K Lambda simple errors are already handled by the Shen REPL. Therefore
# this must be another type of exception. Print it as such and reenter
@@ -33,8 +33,8 @@
if e.kind_of? ReplInterrupt
puts "Execution interrupted. If you are trying to exit the REPL, use (quit)."
else
puts "Ruby exception: #{e.message}"
end
- command = :"shen-loop"
+ command = :"shen.loop"
retry
end