3 ms·
Mostly efficiency. A typical shell function doesn't spawn a new shell, which running a script would. On a modern system, it's probably irrelevant.
by rootbear 5y ago
Mostly efficiency. A typical shell function doesn't spawn a new shell, which running a script would. On a modern system, it's probably irrelevant.