Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function aliases broken when installed by sh/alias. #188

Open
andrewchambers opened this issue Jun 4, 2019 · 1 comment
Open

Function aliases broken when installed by sh/alias. #188

andrewchambers opened this issue Jun 4, 2019 · 1 comment
Labels
bug Something isn't working maybe rare

Comments

@andrewchambers
Copy link
Owner

andrewchambers commented Jun 4, 2019

(sh/alias "foo" (fn [&args] (print "foo"))) should work. Currently it doesn't due to excessive stringification.

The current work around is to manually add entries to the aliases table.

(put sh/*aliases* "ls" [(fn [&args] ...)] )
@andrewchambers andrewchambers added bug Something isn't working rare maybe labels Jun 4, 2019
@andrewchambers
Copy link
Owner Author

andrewchambers commented Jun 4, 2019

It is uncertain how useful this is in practice, since a function alias can't do much more than just writing an executable to disk and running that. I suppose they have access to some of the shells internal state after the fork, which may be useful...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maybe rare
Projects
None yet
Development

No branches or pull requests

1 participant