Add `define-bash-function` macro
commited87ccd0a7862a88c10f668a9a49aa043c858649
authorDmitry Bogatov <KAction@gnu.org>
Fri, 30 Jan 2015 04:11:51 +0000 (30 07:11 +0300)
committerDmitry Bogatov <KAction@gnu.org>
Fri, 30 Jan 2015 04:11:51 +0000 (30 07:11 +0300)
tree9e909c25abdcae27caa9ed6400c143974f45e50f
parent7f29cd36055b5e058c8ba9420e59f0843bce81db
Add `define-bash-function` macro

  * lisp/gnu/bash.scm(bind-scm-function): Catch exceptions here, not in
  C code to more fine-grained control of return value

  * lisp/gnu/bash.scm(define-bash-function): New macro, defining
  scheme procedure and binding bash function of same name to it.

  * tests/command.bash.in: test wrong-type-argument errors

  * tests/command.scm.in: Use `define-bash-function` in tests
lisp/gnu/bash.scm
tests/command.bash.in
tests/command.scm.in