scheme / scsh

A Unix shell embedded in scheme
Other
386 stars 36 forks source link

Can't make scsh to work #21

Closed 4DA closed 10 years ago

4DA commented 10 years ago

For example this fails

$ scsh -s test/test-base.scm

assertion-violation: undefined variable [global] testdt scsh-user

debian amd64

roderyc commented 10 years ago

Your example won't ever work as is because test-base uses syntax (specifically define-record-type) that's not included in the default package, scsh-user. If you're simply trying to run the tests, running make test takes care of the necessary set up.

Do you have any other examples that you know should work that don't? I assume at least starting the repl by just running scsh works? If you don't have any other examples, I'll close this out.

It's hard for anyone except me to know what should work without documentation, and I'm working on that, but please try to be more specific about any problems you run into if you have anything to report going forward. Thanks!

4DA commented 10 years ago

make test passes by, it seems i have wrong assumption on how to run stuff

% ./scsh Welcome to scsh 0.7 Type ,? for help.

(ls)

assertion-violation: undefined variable [global] ls scsh-user 1>

should that work?

On Thu, Feb 13, 2014 at 7:25 AM, Roderic Morris notifications@github.comwrote:

Your example won't ever work as is because test-base uses syntax (specifically define-record-type) that's not included in the default package, scsh-user. If you're simply trying to run the tests, running make test takes care of the necessary set up.

Do you have any other examples that you know should work that don't? I assume at least starting the repl by just running scsh works? If you don't have any other examples, I'll close this out.

It's hard for anyone except me to know what should work without documentation, and I'm working on that, but please try to be more specific about any problems you run into if you have anything to report going forward. Thanks!

— Reply to this email directly or view it on GitHubhttps://github.com/scheme/scsh/issues/21#issuecomment-34945053 .

With best regards, Dmitry

roderyc commented 10 years ago

To simply run programs in your PATH, you'd wrap calls to them in run. Your example would be (run (ls)). That will print the output of running ls in whatever directory you're in and return ls's status code as a scheme value (probably 0).

Again, current documentation is on the way, but for now the documentation on the last version here http://scsh.net/docu/html/man.html will get you going. There are significant differences between the scsh that document describes and the version in this repo, but the fundamentals it describes in the first few chapters should be the same.

4DA commented 10 years ago

ok thanks

On Thu, Feb 13, 2014 at 5:57 PM, Roderic Morris notifications@github.comwrote:

To simply run programs in your PATH, you'd wrap calls to them in run. Your example would be (run (ls)). That will print the output of running lsin whatever directory you're in and return ls's status code as a scheme value (probably 0).

Again, current documentation is on the way, but for now the documentation on the last version here http://scsh.net/docu/html/man.html will get you going. There are significant differences between the scsh that document describes and the version in this repo, but the fundamentals it describes in the first few chapters should be the same.

— Reply to this email directly or view it on GitHubhttps://github.com/scheme/scsh/issues/21#issuecomment-34979804 .

With best regards, Dmitry