If I run it manually on windows p4 change -i input template and send Ctrl+Z, stdin is closed and either there is parsing error or changelist is created. Linux version does not react on Ctrl+D (unix EOF) or on Ctrl+Z (by manually sending code 26 to the stdin).
Is it broken or there is an undocumented way to close the input stream?
I found this old perl script from 1998 , suggesting that it was properly reacting on EOF or EOT sygnals, but running it reveals that 2019 version still hangs.
# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.3 LTS Release: 18.04 Codename: bionic # p4 -V Perforce - The Fast Software Configuration Management System. Copyright 1995-2019 Perforce Software. All rights reserved. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) Version of OpenSSL Libraries: OpenSSL 1.1.1a 20 Nov 2018 See 'p4 help [ -l ] legal' for additional license information on these licenses and others. Extensions/scripting support built-in. Parallel sync threading built-in. Rev. P4/LINUX26X86_64/2019.1/1845410 (2019/08/28).