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

I mostly use executable scripts so I can put it in a dir in my PATH. That way I can just run globally. No need to know where it is, or how to run it.

> The biggest impediment is the ceremony for subprocessing out

Not sure I fully understand what you mean with this, but if I'm understanding it right, gorun attempts to solve this by doing `syscall.Exec()` on the compiled binary. Combined with slight variation on the "comment" hack (see examples in gorun's readme), signals get fully directed your binary.

    // 2>/dev/null ; exec gorun "$0" "$@"
    package main
    // rest of the code


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

Search: