Globs are expanding before variables
Ion
let test = test
echo $test/*
/bin /boot /cdrom /dev /etc /home /initrd.img /initrd.img.old /lib /lib32 /lib64 /lost+found /media /mnt /nnt /opt /proc /recovery /root /run /sbin /snap /srv /sys /t /test /testing /tmp /usr /var /vmlinuz /vmlinuz.old test
Bash
test=test
echo $test/*
test/a test/b test/c