Fix: shellfuncs: fix syntax error caused by exit_reason support for dash shell.