Closed ralt closed 6 years ago
That's supposed to happen. You defined a recursive function that never bottoms out.
It looks like you're trying to define an alias. I don't have any tests for it or example code to point you at, but SHCL does support aliases. Check out shcl/core/expand:set-alias
.
Example:
(shcl/core/expand:set-alias "testAlias" '("ls" "-l"))
#$ testAlias ~ #$
I wrote the alias stuff long before I had good support for builtins. I wonder if I can roll up the concept of an alias into the builtin table, now. Hm.
Oh, duh. Of course.
Thanks!
I wanted to write a simple alias like
alias ls=ls --color
, so I wrote a simple builtin to start off:This fails quite spectularly:
Is that something you're familiar with?