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

Shell independent helper functions #13

Open
thorncp opened this issue Aug 22, 2018 · 0 comments
Open

Shell independent helper functions #13

thorncp opened this issue Aug 22, 2018 · 0 comments

Comments

@thorncp
Copy link
Owner

thorncp commented Aug 22, 2018

Historically, I've had a collection of helper functions, first written in bash, then ported to zsh, now partially ported to fish. Porting these is not how I want to spend my time. Is it worth the effort of writing them to be shell independent, then (hopefully) never having this problem again?

Desires:

  • Not written in sh/bash/zsh. These are not enjoyable to author and are a pain to maintain

  • Performance is priority. My first thought is to use Ruby for everything, but the startup costs may be too high. E.g.

      % time sh -c ""
              0.00 real         0.00 user         0.00 sys
      % time ruby -e ""
              0.28 real         0.16 user         0.09 sys
    

See also:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant