diff --git a/user/tb/interp.c b/user/tb/interp.c index d8bd79e..1cc3af1 100644 --- a/user/tb/interp.c +++ b/user/tb/interp.c @@ -81,7 +81,7 @@ void tz_expandspecial(Tokenizer *tz) { if (tk->str[0] == '$' && string_len(tk->str) > 1) { RtAlias *alias, *aliastmp; LL_FOREACH_SAFE(RTALIASES, alias, aliastmp) { - if (string_strcmp(alias->namebuf, tk->str) == 0) { + if (string_strcmp(alias->namebuf, tk->str+1) == 0) { ufree(tk->str); size_t len = string_len(alias->valbuf)+1; tk->str = umalloc(len);