From 932481a005cc7b2933791a349a312af0149b6c94 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Tue, 15 Sep 2020 14:08:31 +0200 Subject: commands: setenv: allow use with hush shell setenv was so far restricted to the simple shell, because with hush, users could just do dev.var=VAL for setting variables in the environment. The hush syntax doesn't allow for setting all kinds of environment variables though, e.g. 5c00a000.tamp@5c00a000:reboot-mode.of.param can't be set with hush, because of the special characters. It could still be read by using the ${variable} syntax though. Allow setting these variables by making the setenv command generally available. The default is chosen to be 'y', because the command is deemed small and useful enough to have it there by default. Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- include/complete.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/complete.h') diff --git a/include/complete.h b/include/complete.h index 763d256bf4..75a92fc86a 100644 --- a/include/complete.h +++ b/include/complete.h @@ -22,5 +22,6 @@ int devicetree_alias_complete(struct string_list *sl, char *instr); int devicetree_nodepath_complete(struct string_list *sl, char *instr); int devicetree_complete(struct string_list *sl, char *instr); int devicetree_file_complete(struct string_list *sl, char *instr); +int env_param_noeval_complete(struct string_list *sl, char *instr); #endif /* __COMPLETE_ */ -- cgit v1.2.3