Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kevinmgranger
on April 7, 2017
|
parent
|
context
|
favorite
| on:
Build Your Own Text Editor
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.
_pvxk
on April 8, 2017
[–]
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: