Unable to get input in a subprocess launched by Swift

The problem is that I have a program written in Swift, in it I started the subprocess of running the Ruby script, in Ruby script I can not get the input (which works fine if I run the script in the Ruby program).

I prepared a demo that quickly demonstrates this problem, do not forget to check it: https://github.com/axl411/swift-get-input-problem .

UPDATE:

I also posted an error here: https://bugs.swift.org/browse/SR-4029

+4
source share

Source: https://habr.com/ru/post/1670500/


All Articles