Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I actually do exactly this in some of my personal projects. don't need the eval, store $1 in a variable and shift $@. and you might also want to check that $1 is a function defined in the script, lest the task runner execute some other arbitrary command


Nice! Any chance you could share a GitHub gist or similar?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: