summaryrefslogtreecommitdiff
path: root/userland
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-10-09 13:59:21 +0200
committerAnton Kling <anton@kling.gg>2024-10-09 13:59:21 +0200
commit3743da5e714696adc9537eae8134a583f36aa1e6 (patch)
tree97981a713aebc2923d398d14bfc054577c74dfe6 /userland
parentf18beba3cb3d85ed6e0f44fdff9256c50adcc5e1 (diff)
sh: Fix incorrectly hardcoded value
Diffstat (limited to 'userland')
-rw-r--r--userland/minibox/utilities/sh/lexer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/userland/minibox/utilities/sh/lexer.c b/userland/minibox/utilities/sh/lexer.c
index 1d967e5..0df796f 100644
--- a/userland/minibox/utilities/sh/lexer.c
+++ b/userland/minibox/utilities/sh/lexer.c
@@ -40,7 +40,7 @@ int parse_operand(struct sv *code_ptr, struct TOKEN *cur) {
struct sv code = *code_ptr;
#define TRY_PARSE_STRING(_s, _token) \
if (sv_partial_eq(code, C_TO_SV(_s))) { \
- cur->type = TOKEN_AND; \
+ cur->type = _token; \
cur->string_rep = sv_take(code, &code, strlen(_s)); \
goto complete_return; \
}