[TUHS] A few comments on porting the Bourne shell
Ron Natalie
ron at ronnatalie.com
Thu Jan 5 01:54:37 AEST 2023
Indeed. MiniUnix had no hardware pipes, but the shell “simulated” it
by writing to a intermediate temp file.
------ Original Message ------
>From "Ralph Corderoy" <ralph at inputplus.co.uk>
To tuhs at tuhs.org
Date 1/4/2023 10:21:02 AM
Subject [TUHS] Re: A few comments on porting the Bourne shell
>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