aboutsummaryrefslogtreecommitdiffstats
path: root/src/variables.c
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2025-11-01 15:18:03 -0400
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2025-11-01 15:18:03 -0400
commitf84e64b593c6e6fda9e2a907d25ed99d8742d619 (patch)
treeb82322106129d3a86b246657886b5d596e2640a7 /src/variables.c
parentddcf611815c145b1fadca042e65648a7a81cc497 (diff)
downloadhush-f84e64b593c6e6fda9e2a907d25ed99d8742d619.tar.gz
Added support for required builtins
Diffstat (limited to 'src/variables.c')
-rw-r--r--src/variables.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/variables.c b/src/variables.c
index c7cc4da..c478d9d 100644
--- a/src/variables.c
+++ b/src/variables.c
@@ -21,8 +21,6 @@ bool add_variable(const char *key, const char *val) {
}
const char *get_variable(const char *key) {
- fprintf(stderr, "Key is: %s\n", key);
-
key += (key[0] == '$');
const char *val;
strmap_status stat = strmap_get(map, key, &val);
@@ -37,10 +35,7 @@ const char *get_variable(const char *key) {
break;
}
- val = (val) ? val : "";
- fprintf(stderr, "Value is: %s\n", val);
-
- return val;
+ return (val) ? val : "";
}
bool promote_variable_to_env(const char *key) {