- Jun
- 762
- 16
I have encountered problems when trying to display all matching alias definitions using '' when one of the aliases has '' in its name. For example, consider the following aliases
zz=zza
zz*a=echo this is alias zza
zz*b=echo this is alias zzb
Notice that the following displays only the first alias that literally matches "zz*".
Inserting a '?' character solves the problem.
The '?' character (which in TCC can be zero characters) breaks the exact match to the start of "zz*a".
zz=zza
zz*a=echo this is alias zza
zz*b=echo this is alias zzb
Notice that the following displays only the first alias that literally matches "zz*".
Code:
TCC(34.00.12): C:\temp>alias zz*
echo this is alias zza
Inserting a '?' character solves the problem.
Code:
TCC(34.00.12): C:\temp>alias zz?*
zz=zza
zz*a=echo this is alias zza
zz*b=echo this is alias zzb
The '?' character (which in TCC can be zero characters) breaks the exact match to the start of "zz*a".