| 3850 | } sh_ci_t; |
| 3851 | |
| 3852 | static void sh_ci_var(sh_t *s, const char *name, const char *value) { |
| 3853 | sh_val_t *v = value ? cbm_arena_alloc(s->a, sizeof(*v)) : NULL; |
| 3854 | if (v) { |
| 3855 | *v = (sh_val_t){value, NULL, 0}; |
| 3856 | } |
| 3857 | sh_set(s, name, v ? v : &SH_UNKNOWN_VAL, false); |
| 3858 | } |
| 3859 | |
| 3860 | /* A command line CI runs: evaluated from its directory with its variables; |
| 3861 | * $0 is unknown. */ |
no test coverage detected