Comment by jakub_g
6 years ago
FYI in bash there's somehow similar `command` built-in.
Say you have an alias that overrides `ls`. When you want to run original ls, you run `command ls`.
6 years ago
FYI in bash there's somehow similar `command` built-in.
Say you have an alias that overrides `ls`. When you want to run original ls, you run `command ls`.
That's good tip to know! Thanks!
Wonder if you have /usr/bin/command - well gotta try it! :)
I believe `\ls` does the same thing.
Or, you know, fully-specified path:
When you override a bash built-in like `cd` with an alias, `command` is the only option.
Fair point.
Is there an alternate mechanism for invoking a shell's built-ins externally? Obviously for state-changing operations such as 'cd' that's of limited use.
Comes to mind. Though likely bypassing initialisations might be useful.