--- ./guile-2.0.7/module/system/repl/command.scm 2012-07-06 20:09:10.000000000 +0000 +++ /home/guile-2.0.7/guile-2.0.7/module/system/repl/command.scm 2013-04-11 03:09:02.000000000 +0000 @@ -1,6 +1,7 @@ ;;; Repl commands ;; Copyright (C) 2001, 2009, 2010, 2011 Free Software Foundation, Inc. +;; Copyright (C) 2013 Nikita Karetnikov ;; This library is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public @@ -66,7 +67,7 @@ (traps) (delete del) (disable) (enable) (registers regs)) (inspect (inspect i) (pretty-print pp)) - (system (gc) (statistics stat) (option o) + (system (gc) (statistics stat) (run !) (option o) (quit q continue cont)))) (define *show-table* @@ -927,6 +928,14 @@ (set! (repl-tm-stats repl) this-tms) (set! (repl-gc-stats repl) this-gcs))) +(define-meta-command (run repl command . args) + "run +Run a command." + (apply system* + (map (lambda (x) + (->string x)) + (cons command args)))) + (define (display-stat title flag field1 field2 unit) (let ((fmt (format #f "~~20~AA ~~10@A /~~10@A ~~A~~%" (if flag "" "@")))) (format #t fmt title field1 field2 unit)))