Bert Münnich
Bert Münnich
This is not a bug. The provided snippet works as expected just like @memreflect explained.
``` fn foo { echo xxx return >/dev/null echo yyy } foo xxx ^D yyy ``` This leaves you in the subshell created for the redirection. Hitting `Ctrl-D` exits it...
A possible fix for the original issue is to be more strict about where we'll allow `break`, `continue` and `return`. They already result in an error when outside a function....
I think we should definitely not change the behaviour of `$ifs`. What's your opinion on this, @rakitzis?
The bug was caused and fixed in Debian's patch.
Should we get rid of `protect()`, @rakitzis?
Looking into this, I saw that `env -i rc` behaves the same as `env -i sh` when build with `EDIT=null` on my system. I only got the behaviour from the...
Python gets it right. This is what they're doing: https://peps.python.org/pep-0538/
On Linux it basically boils down to overwriting `LC_CTYPE` to `C.UTF-8` if it is `C` or `POSIX` at startup. Unfortunately on other systems the value needs to be slightly different....
I'm closing this, because rc is encoding-agnostic and works correctly with a properly configured locale.