3 ms·
In theory it should not make a difference but my scripts seem to run faster when I use exec after pipe. Normally I would only add exec to the last command in t
by _c_ 10y ago
In theory it should not make a difference but my scripts seem to run faster when I use exec after pipe.
Normally I would only add exec to the last command in the script, as djb does. But then I started experimenting with using it after pipes.
If you or anyone can explain why this could make scripts "seem" to execute faster, I would be grateful.
Here's the shell source:
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-release-7/src/bin/sh
Incidentally, have you ever tried execlineb? I use that sometimes too.