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

I've written the following one-liner if ed(1) is unavailable on your system, to emulate its functionality:

    trap 'echo -e "\n?"' INT; while true; do read; echo "?"; done


:), Yeah, those were the days!




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

Search: