4 ms·
Retr0id, not sgarland want posix. > Maybe full POSIX sh compat is WIP Still - I sure hope it's possible to do a comparison in sh without spawning two processe
by olejorgenb 2y ago
Retr0id, not sgarland want posix.
> Maybe full POSIX sh compat is WIP
Still - I sure hope it's possible to do a comparison in sh without spawning two processes.
- sgarland 2y agoAs I've just updated my comment to reflect, TIL that parameter substitution is supported (with some exceptions) by `sh`. More broadly though, yes, there's a tendency for people to pop sub-shells without giving it a second thought. Those aren't free; use shell built-ins whenever possible!