From 3743da5e714696adc9537eae8134a583f36aa1e6 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 9 Oct 2024 13:59:21 +0200 Subject: sh: Fix incorrectly hardcoded value --- userland/minibox/utilities/sh/lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'userland/minibox') 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; \ } -- cgit v1.2.3