wryun / es-shell

es: a shell with higher-order functions
http://wryun.github.io/es-shell/
Other
307 stars 25 forks source link

`echo >[1=]` kills the shell #99

Open jpco opened 5 months ago

jpco commented 5 months ago

Surely there must be a better way to handle broken writes than simply imploding.

jpco commented 1 week ago

Related old rc mailing list thread https://inbox.vuxu.org/rc-list/9107080119.9046.rc.badas@syd.dit.csiro.au/T/#t

There's some lack of consensus on what the right thing to do is if you can't print an error to stderr -- either bail entirely or quietly stew. Seems in es' case there could be some benefit to trying to throw an error instead of just exiting, for the usual unwinding reasons?