Discussion:
[ast-developers] Regression with handling redirections inside subshell
Siteshwar Vashisht
2017-04-06 14:59:31 UTC
Permalink
Hello,

With 2013-10-10-alpha there was a behavior change in ksh which causes shell to block in below example :

1 #!/bin/ksh
2 function zzz
3 {
4 sleep 30 >/dev/null &
5 echo $!
6 }
7
8 PID=$(zzz)
9 echo "PID=$PID"

This regression is caused by parameter change from '1' to '3' at [1] and has not been fixed in upstream yet. Is anyone aware about fix for this issue ?

[1] https://github.com/att/ast/blob/c506cb548d9b4bcebef92c86e948657728760e15/src/cmd/ksh93/sh/macro.c#L1201
--
--
Siteshwar Vashisht
Loading...