Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when typing something ending on : in shell #6

Open
nalquas opened this issue Mar 8, 2021 · 1 comment
Open

Crash when typing something ending on : in shell #6

nalquas opened this issue Mar 8, 2021 · 1 comment

Comments

@nalquas
Copy link

nalquas commented Mar 8, 2021

When entering sys: or user: in the Homegirl Shell, the shell (correctly?) responds with Unknown command sys: or Unknown command user:.
However, when entering anything else ending with a :, e.g. hello:, Homegirl crashes with the following terminal output:

Powering on..
Config file: /home/niklas/.config/Homegirl/config.json
core.exception.RangeError@source/program.d(191): Range violation
----------------
??:? _d_arrayboundsp [0x55ffcd218399]
??:? bool program.Program.hasPermission(uint) [0x55ffcd1e9f60]
??:? program.Program program.Program.__ctor(machine.Machine, immutable(char)[], immutable(char)[][], immutable(char)[]) [0x55ffcd1e96fa]
??:? program.Program machine.Machine.startProgram(immutable(char)[], immutable(char)[][], immutable(char)[]) [0x55ffcd1d7178]
??:? uint program.Program.startChild(immutable(char)[], immutable(char)[][]) [0x55ffcd1eab61]
??:? nothrow int lua_api.sys.sys_startchild(bindbc.lua.v53.types.lua_State*) [0x55ffcd1d2796]
??:? [0x7f6e50569ffe]

I suppose this falls under undefined behaviour (as you're supposed to change drives using cd), but I often find myself accidentally trying to change drives this way (similar to how you just type C: in a DOS prompt).

@poeticAndroid
Copy link
Owner

Yea, I think I encountered this bug when I developed it.. Now the project is pretty much discontinued, so I'm probably not going to fix this bug anytime soon..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants