27 ms·
That's weird, because I use comma every time I type something in my shell (on Windows, not cmd.exe, but FAR). Why? In order to make sure that builtin ",time" is
by malkia 7y ago
That's weird, because I use comma every time I type something in my shell (on Windows, not cmd.exe, but FAR). Why? In order to make sure that builtin ",time" is called, not "time.exe", because FAR Manager would try to run the executable under the PATH, instead of the command.
- jakub_g 7y agoFYI 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`.
- alanbernstein 7y agoI believe `\ls` does the same thing.
- dredmorbius 7y agoOr, you know, fully-specified path: /bin/ls
- jakub_g 7y agoWhen you override a bash built-in like `cd` with an alias, `command` is the only option.
- dredmorbius 7y agoFair 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. $SHELL -c '<commands>' Comes to mind. Though likely bypassing initialisations might be useful.
- malkia 7y agoThat's good tip to know! Thanks! Wonder if you have /usr/bin/command - well gotta try it! :)