From 8e8706be2704c3f21437775d37177fdc623c2870 Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 7 Apr 2023 11:52:59 +0200 Subject: [PATCH] sh: Use try_move instead of try_set Looks like Vector does not like being copied. I'll have to look into that later... --- apps/sh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sh.cpp b/apps/sh.cpp index 473025ba..0b7e1a65 100644 --- a/apps/sh.cpp +++ b/apps/sh.cpp @@ -94,7 +94,7 @@ int main() if (child == 0) { Vector argv; - bool ok = split_command_into_argv(command).try_set_value_or_error(argv, errno); + bool ok = split_command_into_argv(command).try_move_value_or_error(argv, errno); if (!ok) { perror("failed to parse command");