3 ms·
Just in case you're on a system without ed, I've written this one liner to simulate its functionality: trap 'echo -e "\n?"' INT; while true; do read; echo
by rhinoceraptor 6y ago
Just in case you're on a system without ed, I've written this one liner to simulate its functionality:
trap 'echo -e "\n?"' INT; while true; do read; echo "?"; done
- kps 6y agoed is in POSIX, so a system without it is seriously broken.