[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function names with slashes don't seem to work.



I mentioned to Paul that functions with slashes in them don't work: 

    ; fn-^'/bin/ls' = echo hello there
    ; /bin/ls
    bin  etc  lib  src  tmp
    ;

He says this is intentional behavior. 

Why?  It seems like this completely breaks the "spoofing" model of es, and
I see no good reason why this is desirable.

You can always get the external program if you are sufficiently paranoid.
For example, assuming es did the right thing with functions that have
slashes in them:

    ; fn-^'/bin/ls' = echo hello there
    ; /bin/ls
    hello there
    ; fn command { local (fn-$1 = ) $* }
    ; command /bin/ls
    bin  etc  lib  src  tmp

So does anyone see any reason not to change es' current behavior?