2 ms·
Bash function names also have a different namespace than Bash variables, so you can define a function and a shell variable with the same name. I used that in a
by abarker 5y ago
Bash function names also have a different namespace than Bash variables, so you can define a function and a shell variable with the same name. I used that in a script which defines a function to be used like an alias to change to a specified directory, but where the name is also set as a shell variable that can be evaluated with $ to give the directory's pathname.