hraban / trivial-shell

A simple Common-Lisp interface to the underlying Operating System
http://common-lisp.net/project/trivial-shell
Other
31 stars 7 forks source link

signals error if there are no spaces in the command line #1

Closed gwkkwg closed 13 years ago

gwkkwg commented 13 years ago

Gary,

I think there is a bug in trivial-shell in #'shell-command; it signals an error if there are no spaces in the command string. There is a let binding to

(subseq command 0 (or pos-space))

in which it seems the "or" is doing nothing useful. Should that be (or pos-space (length command)) or something like that? I am using trivial-shell from quicklisp, but this is also present in the github source.

(From Liam Healy)

gwkkwg commented 13 years ago

Hi Liam,

Done.