Hacker News new | past | comments | ask | show | jobs | submit login

Yep, The closest thing is ?:

    editor = config::get("core.editor")

    if (!editor) editor = ENVIRON["EDITOR"] ? ENVIRON["EDITOR"] : "vi"



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

Search: