oils-for-unix / oils

Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
http://www.oilshell.org/
Other
2.85k stars 159 forks source link

Ctrl-C causes Interrupted system call #2108

Open yurivict opened 3 weeks ago

yurivict commented 3 weeks ago
$ osh
osh-0.23.0$ ^Coils I/O error (main): Interrupted system call

Version: 0.23.0 OS: FreeBSD 14.1

andychu commented 3 weeks ago

Thanks for the report!

I have noticed this on OS X too -- Not sure why it's different than Linux

andychu commented 3 weeks ago

Suspicions for this bug

I will look into this

andychu commented 3 weeks ago

OK yes I can repro this on Linux when GNU readline isn't present

$ _bin/cxx-opt-sh/osh
Warning: Can't set option 'vi' because shell wasn't compiled with GNU readline
[osh] hoover ~/src/oils/oils-for-unix-0.23.0$ ^Coils I/O error (main): Interrupted system call

Hmmm

andychu commented 3 weeks ago

Also I wonder if we should get rid of the vi error message, and move it to --version and such

andychu commented 3 weeks ago

I just fixed this - thanks for the report!

There needs to be some more polishing in the non-GNU-readline case