[TUHS] A few comments on porting the Bourne shell

Ralph Corderoy ralph at inputplus.co.uk
Thu Jan 5 01:21:02 AEST 2023


Hi John,

> Making shell scripts portable means not using pipelines

No it doesn't...

> because given "foo | bar", kshNN and zsh execute foo in a subshell and
> bar in the top-level shell, whereas in other shells, both foo and bar
> execute in subshells.

...because a lot of the time that doesn't matter.

-- 
Cheers, Ralph.


More information about the TUHS mailing list