How To Auto `command -p` In All My Script?
1
vote
2
answers
251
views
I want to execute all commands within my script with
command -p
e.g.:
command -p pwd
Because there may be some command that I will execute within the script whose name is being used by some other custom user script and in this case the command
command causes the system command to be executed and not the user's (this is a friendly explanation, if you want a technical understanding of what really happens behind the scenes, consult the man page) which is what I want.
Well, so that I don't always have to literally type "command -p
" at the beginning of the line every time I invoke any command within the script, is there any way to define the behavior of command -p
globally in the script?
Asked by rhuanpk
(413 rep)
Dec 26, 2023, 11:37 PM
Last activity: Dec 28, 2023, 10:18 PM
Last activity: Dec 28, 2023, 10:18 PM