4 ms·
> The trick here is that : is used as a function name, which is possible because the colon is not a reserved character in Bash as it is in most other languages.
by kazinator 7y ago
> The trick here is that : is used as a function name, which is possible because the colon is not a reserved character in Bash as it is in most other languages.
There is an additional subtlety in that : is the null command, which is being redefined.