3 ms·
I may misunderstand what you mean, but isn't unmapping standard commands bad for portable scripting? Not everyone will have the same aliases as you; for somethi
by rm999 14y ago
I may misunderstand what you mean, but isn't unmapping standard commands bad for portable scripting? Not everyone will have the same aliases as you; for something like git commit this may not matter, but it seems like a bad habit to me. And again, I may misunderstand what you mean, I don't even know how to make it impossible to type a command.
- ori_b 14y agoAliases typically only apply to interactive usage. From 'man bash': Aliases are not expanded when the shell is not interactive, unless the expand_aliases shell option is set using shopt (see the description of shopt under SHELL BUILTIN COMMANDS below).