homegirl icon indicating copy to clipboard operation
homegirl copied to clipboard

Crash when typing something ending on : in shell

Open nalquas opened this issue 3 years ago • 1 comments

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).

nalquas avatar Mar 08 '21 15:03 nalquas

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..

poeticAndroid avatar Mar 08 '21 15:03 poeticAndroid