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

If anyone is having trouble getting the first one working, you need a shebang at the top of the file!

    $ printf '#!/usr/bin/env sh\ncat > "$@"\n' > editor
But the second point is more valid. Ed is the standard editor.


What system are you on that needs the shebang? bash 4 on Ubuntu seems to just run it in bash, though I guess it probably shouldn't :-)




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

Search: